From: Alan Knowles Date: Fri, 4 Aug 2017 06:51:41 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=65fd5773b07a3389aa95905d91bc002e8658a98b NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index 281d3c0a..842dde03 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -350,7 +350,7 @@ class Pman_Core_NotifySend extends Pman $w->to_email = $p->email; //$this->addEvent('NOTIFY', $w, 'GREYLISTED ' . $p->email . ' ' . $res->toString()); - $w->act_when = date('Y-m-d H:i:s', strtotime('NOW + ' . $retry . ' MINUTES')); + $w->act_when = $w->sent == '0000-00-00 00:00:00' ? date('Y-m-d H:i:s', strtotime('NOW + ' . $retry . ' MINUTES')) : $w->act_when; $w->update($ww); $ww = clone($w);