DataObjects/Core_notify_recur.php
[Pman.Core] / Notify.php
index 00366fb..94f6752 100644 (file)
@@ -91,9 +91,11 @@ class Pman_Core_Notify extends Pman
             $this->send_to = $opts['send-to'];
         }
      
-     
+        
         $w = DB_DataObject::factory('core_notify_recur');
-        $w->generateNotifications();
+        if (is_a($w, 'DB_DataObject')) {
+            $w->generateNotifications();
+        }
      
      
         //DB_DataObject::debugLevel(1);
@@ -201,7 +203,7 @@ class Pman_Core_Notify extends Pman
         if (!empty($this->send_to)) {
             $app .= ' --sent-to='.escapeshellarg($this->send_to);
         }
-        $cmd = $php . ' ' . $app; //. ' &';
+        $cmd = $php . ' ' . $app . ' ' . $cmdOpts; //. ' &';
         
        
         $pipe = array();