UpdateDatabase/MysqlEngineCharset.php
[Pman.Core] / NotifySend.php
index 41c895c..af7c4ef 100644 (file)
@@ -358,7 +358,6 @@ class Pman_Core_NotifySend extends Pman
         
         $core_domain = DB_DataObject::factory('core_domain');
         if(!$core_domain->get('domain', $dom)){
-            print_r($core_domain);exit;
             $core_domain = DB_DataObject::factory('core_domain');
             $core_domain->setFrom(array(
                 'domain' => $dom
@@ -461,6 +460,10 @@ class Pman_Core_NotifySend extends Pman
                 
                 $ev->writeEventLog($this->debug_str);
                 
+                if(strtotime($w->act_when) > strtotime("NOW")){
+                    $w->act_when = date('Y-m-d H:i:s');
+                }
+                
                 $w->sent = date('Y-m-d H:i:s');
                 $w->msgid = $email['headers']['Message-Id'];
                 $w->event_id = $ev->id; // sent ok.. - no need to record it..