NotifySend.php
authorAlan Knowles <alan@roojs.com>
Fri, 4 Aug 2017 06:51:41 +0000 (14:51 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 4 Aug 2017 06:51:41 +0000 (14:51 +0800)
NotifySend.php

index 281d3c0..842dde0 100644 (file)
@@ -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);