check empty string
authorAlan <alan@roojs.com>
Fri, 17 Nov 2023 04:29:52 +0000 (12:29 +0800)
committerAlan <alan@roojs.com>
Fri, 17 Nov 2023 04:29:52 +0000 (12:29 +0800)
DataObjects/Core_notify.php

index e316e0a..2570c86 100644 (file)
@@ -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);