NotifySend.php
authorAlan Knowles <alan@roojs.com>
Thu, 9 Oct 2014 06:14:45 +0000 (14:14 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 9 Oct 2014 06:14:45 +0000 (14:14 +0800)
NotifySend.php

index 73d67f9..8eec6d8 100644 (file)
@@ -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']);