Merge pull request #132 from nikosnikos/master

Sending admin notification email fail when one of admin users have no email set
This commit is contained in:
Pellaeon Lin 2018-06-18 05:59:21 -04:00 committed by GitHub
commit 70c6f859b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}