fix PHP 8.0 TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given

This commit is contained in:
Ralf Becker 2021-11-10 12:24:08 +01:00
parent 03835c0247
commit 43ae41cae7

View File

@ -806,7 +806,7 @@ class mail_zpush implements activesync_plugin_write, activesync_plugin_sendmail,
}
}
//$BCCmail='';
if (count($mailAddr)>0) $mailObject->forceBccHeader();
if (!empty($mailAddr)) $mailObject->forceBccHeader();
//$BCCmail = $mailObject->AddrAppend("Bcc",$mailAddr);
foreach($folderArray as $folderName) {
if($this->mail->isSentFolder($folderName)) {