DataObjects/Core_person_signup.php
[Pman.Core] / NotifySend.php
index 466e2cb..f53971a 100644 (file)
@@ -68,7 +68,7 @@ class Pman_Core_NotifySend extends Pman
         
     );
     var $table = 'core_notify';
-    var $remote = false;
+    var $error_handler = 'die';
     
     function getAuth()
     {
@@ -89,9 +89,6 @@ class Pman_Core_NotifySend extends Pman
             DB_DataObject::debugLevel($opts['DB_DataObject-debug']);
         }
         
-        if(!empty($opts['remote'])){
-            $this->remote = true;
-        }
         //DB_DataObject::debugLevel(1);
         //date_default_timezone_set('UTC');
         // phpinfo();exit;
@@ -540,6 +537,12 @@ class Pman_Core_NotifySend extends Pman
     
     function errorHandler($msg)
     {
+        if($this->error_handler == 'exception'){
+            throw new Exception($msg);
+        }
+        
+        die($msg);
+        
         
     }
 }
\ No newline at end of file