X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_notify_recur.php;h=7e3a98b6de297c243798a97750d4050a48313f3a;hb=dfa0414559e0a08903276c1e0dbac392733e9a6c;hp=82f512e221831979ec8d7085d2090b9b7b6a0970;hpb=04bcc18740335db9c8e03c7304c3c33d16cf22c1;p=Pman.Core diff --git a/DataObjects/Core_notify_recur.php b/DataObjects/Core_notify_recur.php index 82f512e2..7e3a98b6 100644 --- a/DataObjects/Core_notify_recur.php +++ b/DataObjects/Core_notify_recur.php @@ -87,7 +87,7 @@ class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject } } - //print_r($usedays); + //print_r($this); foreach($usedays as $d){ @@ -127,6 +127,8 @@ class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject foreach($notifytimes as $time){ if (strtotime($time) < time()) { + // will not get deleted.. + unset($old[$time]); continue; } if (isset($old[$time])) { @@ -143,7 +145,8 @@ class Pman_Core_DataObjects_Core_notify_recur extends DB_DataObject "act_when" => $time, "person_id" => $this->person_id, "onid" => $this->onid, - "ontable" => $this->ontable + "ontable" => $this->ontable, + 'evtype' => $this->method, )); $add->insert(); }