forked from GNUsocial/gnu-social
DB_DataObject delete function calls PEAR::isError directly, ignore E_STRICT
This commit is contained in:
parent
50070c9b0a
commit
814696c202
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user