Notify.php
authorAlan Knowles <alan@roojs.com>
Mon, 11 Jun 2012 08:59:04 +0000 (16:59 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 11 Jun 2012 08:59:04 +0000 (16:59 +0800)
Notify.php

index 0160458..6061962 100644 (file)
@@ -103,7 +103,14 @@ class Pman_Core_Notify extends Pman
         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();
+            }
+            
+            
+        }
      
         //DB_DataObject::debugLevel(1);
         $w = DB_DataObject::factory($this->table);