Harden EncryptAll check for empty email
Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
d6e34b5045
commit
918af40f05
|
@ -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