X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=dbf012bb5b2c3aa37b43af22c5e35ffea6d2847f;hb=c14fed651c0fb9a87e4abb3bb8af83871baa899a;hp=5e85aeb58104086bd87fee2aa06170147e003685;hpb=5804f517673b32d1f7ec8b17c20141dd92ac896e;p=Pman.Core diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 5e85aeb5..dbf012bb 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -20,7 +20,7 @@ CREATE TABLE core_notify ( ); **/ -require_once 'DB/DataObject.php'; +class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php'; class Pman_Core_DataObjects_Core_notify extends DB_DataObject { @@ -55,8 +55,6 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject if ($set !== false) { $this->person_table = is_object($set) ? $set->tableName() : ''; - - $person_table = empty($this->person_table) ? $def_pt : strtolower($this->person_table); $col = $person_table == $def_pt ? 'person_id' : $person_table . '_id';