X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=dbf012bb5b2c3aa37b43af22c5e35ffea6d2847f;hb=f5aa5d161bc0428db89f56aa318dbf03ddff22bc;hp=21d8f9f24d60d4239486d2c90499c1e2f486c711;hpb=0657eda06d59999b891ee686a284ba0e020dfae3;p=Pman.Core diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 21d8f9f2..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'; @@ -328,7 +326,6 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject try { $send->get($this->id, array()); } catch (Exception $e) { - print_R($e);exit; ob_end_clean(); return $e; }