DataObjects/Core_notify_recur.php
authorChris <chris@roojs.com>
Thu, 24 May 2012 04:22:10 +0000 (12:22 +0800)
committerChris <chris@roojs.com>
Thu, 24 May 2012 04:22:10 +0000 (12:22 +0800)
DataObjects/Core_notify_recur.php

index cae82c9..7ea2ef3 100644 (file)
@@ -58,12 +58,13 @@ class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
     
     function notifytimes($advance)
     {
-        
-        // make a list of datetimes when notifies need to be generated for.
-        // it starts 24 hours ago.. or when dtstart
-        $this->notifytimesRange($advance);
         error_log($this->start);
         error_log($this->end);
+        // make a list of datetimes when notifies need to be generated for.
+        // it starts 24 hours ago.. or when dtstart
+        
+        list($this->start, $this->end) = $this->notifytimesRange($advance);
+        
         if (strtotime($this->start) > strtotime($this->end)) {
             return array(); // no data..
         }