]> git.mxchange.org Git - friendica.git/commitdiff
Improve check
authornupplaPhil <admin+github@philipp.info>
Sat, 1 Feb 2020 22:32:34 +0000 (23:32 +0100)
committernupplaPhil <admin+github@philipp.info>
Sun, 2 Feb 2020 21:43:41 +0000 (22:43 +0100)
src/Util/EMailer/MailBuilder.php

index c2c2f75dc56a1f67902cd8298b4f87b3b61c6be8..389874efde37630f1024e74ced969ca61a7e3408 100644 (file)
@@ -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'];
                        }
                }