NotifySend.php
[Pman.Core] / NotifySend.php
index 9387dca..8704962 100644 (file)
@@ -355,7 +355,7 @@ class Pman_Core_NotifySend extends Pman
         
         $fail = false;
         require_once 'Mail.php';
-        DB_DataObject::factory(5);
+        
         $core_domain = DB_DataObject::factory('core_domain');
         if(!$core_domain->get('domain', $dom)){
             $core_domain = DB_DataObject::factory('core_domain');
@@ -460,6 +460,10 @@ class Pman_Core_NotifySend extends Pman
                 
                 $ev->writeEventLog($this->debug_str);
                 
+                if(strtotime($w->act_when) > strtotime("NOW")){
+                    
+                }
+                
                 $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..