DataObjects/Core_notify.php
authorEdward <edward@roojs.com>
Wed, 26 Jun 2013 04:45:00 +0000 (12:45 +0800)
committerEdward <edward@roojs.com>
Wed, 26 Jun 2013 04:45:00 +0000 (12:45 +0800)
DataObjects/Core_notify.php

index 71e9ef5..3322c82 100644 (file)
@@ -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;
         
     }