Fix #6507 - sedning test emails
[Pman.Core] / DataObjects / Core_notify.php
index 14e78c9..2cc4a12 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  *
- * Table is designed to be used with a mailer to notify or issue
+ * Table iend designed to be used with a mailer to notify or issue
  * emails (or maybe others later??)
  *
  *
@@ -134,7 +134,7 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
     }
     
     
-    function act_start($set = false, $force = false)
+    function act_start($set = false)
     {
         if ($set === false) {
             return $this->act_start;
@@ -316,15 +316,20 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         
     }
     
-    function sendManual()
+    function sendManual($debug=false)
     {   
         require_once 'Pman/Core/NotifySend.php';
         
         $send = new Pman_Core_NotifySend();
         $send->error_handler = 'exception';
         
-        try {
+        if ($debug) {
             $send->get($this->id, array());
+            return true;
+        }
+        
+        try {
+            $send->get($this->id, array('force' => 1));
         } catch (Exception $e) {
             ob_end_clean();
             return $e;