Merge pull request #25669 from nextcloud/fix/psalm/encryptall

Harden EncryptAll check for empty email
This commit is contained in:
Christoph Wurst 2021-02-16 08:16:19 +01:00 committed by GitHub
commit a649dff179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ class EncryptAll {
$recipientDisplayName = $recipient->getDisplayName(); $recipientDisplayName = $recipient->getDisplayName();
$to = $recipient->getEMailAddress(); $to = $recipient->getEMailAddress();
if ($to === '') { if ($to === '' || $to === null) {
$noMail[] = $uid; $noMail[] = $uid;
continue; continue;
} }