DataObjects/core.sql
[Pman.Core] / NotifySend.php
index 62b448a..b514d42 100644 (file)
@@ -94,7 +94,7 @@ class Pman_Core_NotifySend extends Pman
             
             die("send repeat to early\n");
         }
-        if ($opts['debug']) {
+        if (!empty($opts['debug'])) {
             print_r($w);
         }
         
@@ -400,8 +400,10 @@ class Pman_Core_NotifySend extends Pman
     function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
     {
         $m = 'notify'. $notify->evtype;
-        if (!empty($notify->evtype) && method_exists($object,'notify'. $notify->evtype)) {
-            $object->$m($rcpt, $last_sent_date, $notify, $force);
+        var_dump($m);
+        
+        if (!empty($notify->evtype) && method_exists($object,$m)) {
+            return $object->$m($rcpt, $last_sent_date, $notify, $force);
         }
                 
         
@@ -416,5 +418,8 @@ class Pman_Core_NotifySend extends Pman
         }
         echo $str . "\n";
     }
-    
+    function output()
+    {
+        die("done\n");
+    }
 }
\ No newline at end of file