DataObjects/Core_notify.php
[Pman.Core] / DataObjects / Core_notify.php
index 3322c82..0727e3a 100644 (file)
@@ -64,18 +64,19 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
             return $set;
         }
         $c = DB_DataObject::factory($this->ontable);
+        
         if ($this->onid == 0) {
             return $c; // empty dataobject.
         }
-        
-        if(!$c->get($this->onid)){
-            return false;
-        }
-        
-        
+        $test = DB_DataObject::factory('crm_mailing_list');
+        $test->get(1);
+        print_r($test);exit;
         $c->autoJoin();
         
-        return $c;
+        if ($c->get($this->onid)) {
+            return $c;
+        }
+        return false;
         
     }