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();
|
||||
$to = $recipient->getEMailAddress();
|
||||
|
||||
if ($to === '') {
|
||||
if ($to === '' || $to === null) {
|
||||
$noMail[] = $uid;
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue