From 5c5b525dd3cc3b7a0c571a290829ec04eac52c3b Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 13 Sep 2017 13:21:23 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NotifySend.php b/NotifySend.php index 5b534868..a0dc2255 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -204,7 +204,7 @@ class Pman_Core_NotifySend extends Pman $ev = $this->addEvent('NOTIFY', $w, "Notification event cleared (not required any more)" );; $ww = clone($w); - $w->sent = (!$w->sent || $w->sent == '0000-00-00 00:00:00') ? $w->sqlValue('NOW()') :$w->sent; // do not update if sent..... + $w->sent = (!$w->sent || $w->sent == '0000-00-00 00:00:00') ? $w->sqlValue('NOW()') : $w->sent; // do not update if sent..... $w->msgid = ''; $w->event_id = $ev->id; $w->update($ww); @@ -230,7 +230,7 @@ class Pman_Core_NotifySend extends Pman $ev = $this->addEvent('NOTIFY', $w, isset($email['error']) ? $email['error'] : "INTERNAL ERROR - We can not handle " . $w->ontable); $ww = clone($w); - $w->sent = $w->sent == '0000-00-00 00:00:00' ? $w->sqlValue('NOW()') :$w->sent; // do not update if sent..... + $w->sent = (!$w->sent || $w->sent == '0000-00-00 00:00:00') ? $w->sqlValue('NOW()') : $w->sent; // do not update if sent..... $w->msgid = ''; $w->event_id = $ev->id; $w->update($ww); -- 2.39.2