DataObjects/Core_curr_rate.php
[Pman.Core] / NotifySend.php
index 73d67f9..f038182 100644 (file)
@@ -77,7 +77,7 @@ class Pman_Core_NotifySend extends Pman
     function get($id,$opts)
     {
         
-        print_r($opts);
+        //print_r($opts);
         if ($opts['DB_DataObject-debug']) {
             DB_DataObject::debugLevel($opts['DB_DataObject-debug']);
         }
@@ -334,7 +334,7 @@ class Pman_Core_NotifySend extends Pman
                     'localhost' => $ff->Mail['helo'],
                     'timeout' => 15,
                     'socket_options' =>  isset($ff->Mail['socket_options']) ? $ff->Mail['socket_options'] : null,
-                    'debug' => $opts['debug'],
+                    'debug' => isset($opts['debug']) ?  1 : 0,
                 ));
             $res = $mailer->send($p->email, $email['headers'], $email['body']);