Skip to content

Commit

Permalink
Bug: 14950 Avoid PHP warning from is_array on potentially empty value.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 5, 2019
1 parent 16c6e40 commit 52ebc72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Compose.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ public function buildAndSendMessage(
($prefs->isLocked('save_sent_mail') &&
$prefs->getValue('save_sent_mail')))) {
/* Keep Bcc: headers on saved messages. */
if (count($header['bcc'])) {
if (is_array($header['bcc']) && count($header['bcc'])) {
$headers->addHeader('Bcc', $header['bcc']);
}

Expand Down

0 comments on commit 52ebc72

Please sign in to comment.