X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_notify.php;fp=DataObjects%2FCore_notify.php;h=2570c860710937cb02a754b1aabac6bd041d8af8;hp=e316e0ae0ebb9290f02fb93c60a9923a7502bc2f;hb=7c6847098c3463b3d44c2248117d86220e1efb0b;hpb=ab7158559bb10e18e030654f24edacb70f31a57e diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index e316e0ae..2570c860 100644 --- a/DataObjects/Core_notify.php +++ b/DataObjects/Core_notify.php @@ -352,7 +352,7 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject if(strtotime($this->act_when) > strtotime("NOW")){ $this->act_when = $this->sqlValue('NOW()'); } - $this->sent = strtotime($this->sent) < 1 ? $this->sqlValue('NOW()') :$this->sent; // do not update if sent..... + $this->sent = empty($this->sent) || strtotime($this->sent) < 1 ? $this->sqlValue('NOW()') :$this->sent; // do not update if sent..... $this->msgid = $msgid; $this->event_id = $event->id; $this->update($ww);