DataObjects/Core_domain.php
[Pman.Core] / Notify.php
index 9b63ddd..10f2419 100644 (file)
@@ -153,24 +153,22 @@ class Pman_Core_Notify extends Pman
          
         //date_default_timezone_set('UTC');
        // phpinfo();exit;
-        
-     
-        
-        $w = DB_DataObject::factory('core_notify_recur');
-        if (is_a($w, 'DB_DataObject')) {
-            $w->generateNotifications();
-        }
         if (!empty($opts['generate'])) {
             $w = DB_DataObject::factory($opts['generate']);
             if (is_a($w, 'DB_DataObject')) {
                 $w->generateNotifications();
             }
             exit;
-            
-            
         }
      
-        DB_DataObject::debugLevel(1);
+     
+        
+        $w = DB_DataObject::factory('core_notify_recur');
+        if (is_a($w, 'DB_DataObject')) {
+            $w->generateNotifications();
+        }
+        
+        //DB_DataObject::debugLevel(1);
         $w = DB_DataObject::factory($this->table);
         $total = 0;
         
@@ -203,9 +201,6 @@ class Pman_Core_Notify extends Pman
         }
         
         $w->autoJoin();
-        
-        print_R($w->fetchAll());exit;
-        
         $w->find();
         
         $ar = array(); // $w->fetchAll();
@@ -235,7 +230,7 @@ class Pman_Core_Notify extends Pman
             $this->logecho("BATCH SIZE: ".  (count($ar) + $total) );
             
             if (empty($ar)) {
-                $this->logecho("COMPLETED MAIN QUEUE - running delated");
+                $this->logecho("COMPLETED MAIN QUEUE - running deleted");
                 
                 if (empty($pushed)) {
                     break;