NotifySend.php wip_leon_T7696_Journalist_delivery
authorleon <leon@roojs.com>
Tue, 4 Jul 2023 02:53:05 +0000 (10:53 +0800)
committerleon <leon@roojs.com>
Tue, 4 Jul 2023 02:53:05 +0000 (10:53 +0800)
NotifySend.php

index 35aa4ec..9e46249 100644 (file)
@@ -334,7 +334,6 @@ class Pman_Core_NotifySend extends Pman
             $w->msgid = '';
             $w->event_id = $ev->id;
             $w->to_email = $p->email; 
-            $w->to_email = $p->email; 
             $w->update($ww);
             $this->errorHandler(date('Y-m-d h:i:s') . " - FAILED -  BAD EMAIL - {$p->email} \n");
             
@@ -349,6 +348,7 @@ class Pman_Core_NotifySend extends Pman
             $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->to_email = $p->email; 
             $w->update($ww);
             $this->errorHandler(date('Y-m-d h:i:s') . " - FAILED -  GAVE UP TO OLD - {$p->email} \n");
         }