From 0b309245b1cfc50aeb4a3981c0d2250e4a83c19c Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sat, 1 Feb 2020 23:32:34 +0100 Subject: [PATCH] Improve check --- src/Util/EMailer/MailBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/EMailer/MailBuilder.php b/src/Util/EMailer/MailBuilder.php index c2c2f75dc5..389874efde 100644 --- a/src/Util/EMailer/MailBuilder.php +++ b/src/Util/EMailer/MailBuilder.php @@ -142,7 +142,7 @@ abstract class MailBuilder !empty($this->recipientUid)) { $user = User::getById($this->recipientUid, ['email']); - if (!empty($user)) { + if (!empty($user['email'])) { $this->recipientAddress = $user['email']; } } -- 2.39.5