Fix #6507 - sedning test emails
[Pman.Core] / DataObjects / Core_notify.php
index dbf012b..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??)
  *
  *
@@ -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;