Mailer.php
authorAlan Knowles <alan@roojs.com>
Tue, 6 Nov 2012 07:32:32 +0000 (15:32 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 6 Nov 2012 07:32:32 +0000 (15:32 +0800)
Mailer.php

index aff1ad0..980f02d 100644 (file)
@@ -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 = $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);
         }
         
         $oe = error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);