Merge pull request #25669 from nextcloud/fix/psalm/encryptall
Harden EncryptAll check for empty email
This commit is contained in:
commit
a649dff179
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue