X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=6cc632ab553d517b8366eb262da5abcb37b4b76b;hp=e316e0ae0ebb9290f02fb93c60a9923a7502bc2f;hb=HEAD;hpb=7b79e92134914c1600b3fd4e9c07c726643b801b 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);