DataObjects/Core_watch.php
[Pman.Core] / Mailer.php
index aff1ad0..2ec116d 100644 (file)
@@ -92,7 +92,7 @@ class Pman_Core_Mailer {
         require_once 'HTML/Template/Flexy.php';
         
         $tmp_opts = array();
-        if (isset($this->templateDir)) {
+        if (!empty($this->templateDir)) {
             $tmp_opts['templateDir'] = $this->templateDir;
         }
         
@@ -203,7 +203,7 @@ class Pman_Core_Mailer {
         $rcpts = $this->rcpts == false ? $email['recipents'] : $this->rcpts;
         
         if (!empty($this->contents['bcc']) && is_array($this->contents['bcc'])) {
-            $rcpts =array_merge($rcpts, $this->contents['bcc']);
+            $rcpts =array_merge(is_array($rcpts) ? $rcpts : array($rcpts), $this->contents['bcc']);
         }
         
         $oe = error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);