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