Fix:Email not sent to admins when one have no email
This commit is contained in:
parent
0cc7990ad1
commit
3940e7b716
|
|
@ -128,7 +128,7 @@ class MailService {
|
|||
$to_arr = array();
|
||||
foreach ( $admin_users as $au ) {
|
||||
$au_email = $au->getEMailAddress();
|
||||
if ( $au_email !== '' && $au->isEnabled()) {
|
||||
if ( $au_email && $au->isEnabled()) {
|
||||
$to_arr[$au_email] = $au->getDisplayName();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue