Notify.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 29 May 2012 08:37:02 +0000 (16:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 29 May 2012 08:37:02 +0000 (16:37 +0800)
Notify.php

index 247607c..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);