From aa7d5c24d6a64a2299c37bd47021f0488b9da57d Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 13 Sep 2017 13:22:43 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NotifySend.php b/NotifySend.php index ac89e6f0..f6cc95f3 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -538,7 +538,7 @@ class Pman_Core_NotifySend extends Pman $ev = $this->addEvent('NOTIFY', $w, ($fail ? "FAILED - " : "RETRY TIME EXCEEDED - ") . $errmsg); - $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->domain_id = $core_domain->id; -- 2.39.2