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

index 842dde0..16864b1 100644 (file)
@@ -350,6 +350,7 @@ class Pman_Core_NotifySend extends Pman
         
         $w->to_email = $p->email; 
         //$this->addEvent('NOTIFY', $w, 'GREYLISTED ' . $p->email . ' ' . $res->toString());
+        // we can only update act_when if it has not been sent already (only happens when running in force mode..)
         $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);