From 7c6847098c3463b3d44c2248117d86220e1efb0b Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 17 Nov 2023 12:29:52 +0800 Subject: [PATCH] check empty string --- DataObjects/Core_notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2