From f071b1d177585c7444276546d8de6d67b8920c76 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 26 Jun 2013 12:45:00 +0800 Subject: [PATCH] DataObjects/Core_notify.php --- DataObjects/Core_notify.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index 71e9ef51..3322c822 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -68,11 +68,14 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject return $c; // empty dataobject. } - $c->autoJoin(); - if ($c->get($this->onid)) { - return $c; + if(!$c->get($this->onid)){ + return false; } - return false; + + + $c->autoJoin(); + + return $c; } -- 2.39.2