DataObjects/Core_notify_recur.php
[Pman.Core] / DataObjects / Core_notify_recur.php
index a04a2dd..e090229 100644 (file)
@@ -142,14 +142,14 @@ class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
         
 
         $notifytimes = $this->notifyTimes(2);
-        print_R($notifytimes);exit;
+//        print_R($notifytimes);exit;
         
         $newSearch = DB_DataObject::factory('core_notify');
         $newSearch->whereAdd( 'act_start > NOW()');
         $newSearch->recur_id = $this->id;
         $old = $newSearch->fetchAll('act_start', 'id');
         // returns array('2012-12-xx'=>12, 'date' => id....)
-        print_R($old);exit;
+
         
         
         foreach($notifytimes as $time){
@@ -172,6 +172,7 @@ class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
                 unset($old[$time]);
                continue;
             }
+            print_R($time);exit;
             // do not have a notify event... creat it..
             $add = DB_DataObject::factory('core_notify');
             $add->setFrom(array(