* fix for save mail queue.

This commit is contained in:
wangyidong
2017-01-09 09:29:09 +08:00
parent eff0ac2d99
commit cd25a4216e
+4
View File
@@ -499,6 +499,10 @@ class mailModel extends model
foreach($toList as $key => $to) if(trim($to) == $account or !trim($to)) unset($toList[$key]);
foreach($ccList as $key => $cc) if(trim($cc) == $account or !trim($cc)) unset($ccList[$key]);
}
if(!$toList and !$ccList) return;
if(!$toList and $ccList) $toList = array(array_shift($ccList));
$toList = join(',', $toList);
$ccList = join(',', $ccList);
if(empty($toList) or empty($subject)) return true;