From: edward Date: Wed, 13 Sep 2017 05:22:58 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=11d53652d310b8ee56e74fdd1b64f74b6b7e8fe3 NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index f6cc95f3..5cd8e187 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -549,7 +549,7 @@ class Pman_Core_NotifySend extends Pman // handle no host availalbe forever... if (strtotime($w->act_start) < strtotime('NOW - 3 DAYS')) { $ev = $this->addEvent('NOTIFY', $w, "RETRY TIME EXCEEDED - ". $p->email); - $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;