Mailer.php
authorAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 04:38:49 +0000 (12:38 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 14 Jan 2016 04:38:49 +0000 (12:38 +0800)
Mailer.php

index f327edb..070b198 100644 (file)
@@ -297,7 +297,8 @@ class Pman_Core_Mailer {
             $ret['recipents'] =  $this->rcpts;
         }
         
-        if (!empty($ret['recipents']) && is_array($ret['recipents']) && (empty($ret['headers']['To']) || !strlen(trim($ret['headers']['To'])))) {
+        if (!empty($ret['recipents']) && is_array($ret['recipents']) &&
+                (empty($ret['headers']['To']) || !strlen(trim($ret['headers']['To'])))) {
             $ret['headers']['To'] = implode(',', $ret['recipents']);
         }