NotifySend.php
[Pman.Core] / NotifySend.php
index 587439e..e6a8404 100644 (file)
@@ -358,7 +358,7 @@ class Pman_Core_NotifySend extends Pman
         
         $core_domain = DB_DataObject::factory('core_domain');
         if(!$core_domain->get('domain', $dom)){
-            $core_domain = DB_DataObject::factory($core_domain);
+            $core_domain = DB_DataObject::factory('core_domain');
             $core_domain->setFrom(array(
                 'domain' => $dom
             ));
@@ -396,7 +396,7 @@ class Pman_Core_NotifySend extends Pman
                             continue;
                         }
                         
-                        $core_notify = DB_DataObject::factory('core_notify');
+                        $core_notify = DB_DataObject::factory($this->table);
                         $core_notify->domain_id = $core_domain->id;
                         $core_notify->whereAdd("
                             sent >= NOW - INTERVAL 1 HOUR