X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_notify_recur.php;h=7e3a98b6de297c243798a97750d4050a48313f3a;hb=dfa0414559e0a08903276c1e0dbac392733e9a6c;hp=762d9152848abe3f50dd6e119b8e2ee49a022fe9;hpb=8c3d0478ce2ed003aed7e4e85d886f6a1d4a6bfc;p=Pman.Core diff --git a/DataObjects/Core_notify_recur.php b/DataObjects/Core_notify_recur.php index 762d9152..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($use) + //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(); }