X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=729f0a82dbe8c703513a651f1cc27eed86e3063a;hp=fd366d48a209a51a6ddecc1dac8198a45351ad7b;hb=5d4ac076dc4f620fbb91944eead3e0af66216a03;hpb=11c6d8de0375e4c835c73a7316e3f003deeaec5b diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index fd366d48..729f0a82 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 { @@ -328,12 +328,13 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject try { $send->get($this->id, array()); } catch (Exception $e) { - // nothing to do + ob_end_clean(); + return $e; } ob_end_clean(); - return; + return true; } }