X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_notify.php;h=e316e0ae0ebb9290f02fb93c60a9923a7502bc2f;hb=7b79e92134914c1600b3fd4e9c07c726643b801b;hp=d8f343abae0f4bcda9110f4f87cc0ba6b6b39e69;hpb=b713c3f219860e2b8045af866819810cadc35391;p=Pman.Core diff --git a/DataObjects/Core_notify.php b/DataObjects/Core_notify.php index d8f343ab..e316e0ae 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 = $this->sent == '0000-00-00 00:00:00' ? $this->sqlValue('NOW()') :$this->sent; // do not update if sent..... + $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);