DataObjects/Core_notify_recur.php
authorChris <chris@roojs.com>
Thu, 24 May 2012 07:46:50 +0000 (15:46 +0800)
committerChris <chris@roojs.com>
Thu, 24 May 2012 07:46:50 +0000 (15:46 +0800)
DataObjects/Core_notify_recur.php

index f199265..165ad94 100644 (file)
@@ -68,17 +68,9 @@ class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject
         
         $hours = json_decode($this->freq_hour);
         
-        //$dayAry = json_decode($this->freq_day);
-        if (!$hours) {
-            $hours = array(date('H:i', strtotime($this->dtstart)));
-            //print_r($hours);
-        }
         $days = json_decode($this->freq_day);
         //print_r($days);
-        for ($day = date('Y-m-d', strtotime($start));
-                strtotime($day) < strtotime($end);
-                $day = date('Y-m-d', strtotime("$day + 1 DAY")))
-        {
+        for ($day = date('Y-m-d', strtotime($start));strtotime($day) < strtotime($end); $day = date('Y-m-d', strtotime("$day + 1 DAY"))){
                     print_r($day);
             // skip days not accounted for..
             if (!in_array(date('N', strtotime($day)), $days)) {