Commit 50070c9b authored by mmn's avatar mmn

GS_DataObject overrides DB_DataObject insert() too

parent 06503cc1
......@@ -137,6 +137,20 @@ class GS_DataObject extends DB_DataObject
return $res;
// insert calls PEAR::isError from DB_DataObject, so let's make that disappear too
public function insert()
// avoid those annoying PEAR::DB strict standards warnings it causes
$old = error_reporting();
error_reporting(error_reporting() & ~E_STRICT);
$res = parent::insert();
// reset
return $res;
// DB_DataObject's joinAdd calls DB_DataObject::factory explicitly, so our factory-override doesn't work
public function joinAdd($obj = false, $joinType='INNER', $joinAs=false, $joinCol=false)
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