mirror of
https://github.com/friendica/friendica
synced 2025-01-05 16:02:19 +00:00
Improve check
This commit is contained in:
parent
0e13428210
commit
0b309245b1
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ abstract class MailBuilder
|
||||||
!empty($this->recipientUid)) {
|
!empty($this->recipientUid)) {
|
||||||
$user = User::getById($this->recipientUid, ['email']);
|
$user = User::getById($this->recipientUid, ['email']);
|
||||||
|
|
||||||
if (!empty($user)) {
|
if (!empty($user['email'])) {
|
||||||
$this->recipientAddress = $user['email'];
|
$this->recipientAddress = $user['email'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue