Commit 814696c2 authored by mmn's avatar mmn

DB_DataObject delete function calls PEAR::isError directly, ignore E_STRICT

parent 50070c9b
......@@ -72,6 +72,20 @@ class GS_DataObject extends DB_DataObject
return $res;
}
// delete calls PEAR::isError from DB_DataObject, so let's make that disappear too
public function delete($useWhere = false)
{
// avoid those annoying PEAR::DB strict standards warnings it causes
$old = error_reporting();
error_reporting(error_reporting() & ~E_STRICT);
$res = parent::delete($useWhere);
// reset
error_reporting($old);
return $res;
}
static public function factory($table = '')
{
// avoid those annoying PEAR::DB strict standards warnings it causes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment