DataObjects/Core_notify.php
authorAlan Knowles <alan@roojs.com>
Thu, 24 Sep 2020 03:52:10 +0000 (11:52 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Sep 2020 03:52:10 +0000 (11:52 +0800)
DataObjects/Core_notify.php

index 7c8c6e4..6cc632a 100644 (file)
@@ -323,6 +323,11 @@ class Pman_Core_DataObjects_Core_notify extends DB_DataObject
         $send = new Pman_Core_NotifySend();
         $send->error_handler = 'exception';
         
+        if ($debug) {
+            $send->get($this->id, array());
+            return true;
+        }
+        
         try {
             $send->get($this->id, array());
         } catch (Exception $e) {