NotifySend.php
authorEdward <edward@roojs.com>
Mon, 9 Feb 2015 02:53:05 +0000 (10:53 +0800)
committerEdward <edward@roojs.com>
Mon, 9 Feb 2015 02:53:05 +0000 (10:53 +0800)
NotifySend.php

index afc09bf..d406a7a 100644 (file)
@@ -537,10 +537,12 @@ class Pman_Core_NotifySend extends Pman
     
     function errorHandler($msg)
     {
-        if(empty($this->referer)){
-            die($msg);
+        if($error_handler == 'exception')){
+            throw new Exception($msg);
         }
         
-        throw new Exception($msg);
+        die($msg);
+        
+        
     }
 }
\ No newline at end of file