From: Alan Knowles Date: Tue, 6 Nov 2012 07:32:32 +0000 (+0800) Subject: Mailer.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;ds=sidebyside;h=6d4bba1f6897f4cd498267d8eab84201e43e1cfc;p=Pman.Core Mailer.php --- diff --git a/Mailer.php b/Mailer.php index aff1ad0c..980f02d3 100644 --- a/Mailer.php +++ b/Mailer.php @@ -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);