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:
commit
70c6f859b5
|
|
@ -128,7 +128,7 @@ class MailService {
|
||||||
$to_arr = array();
|
$to_arr = array();
|
||||||
foreach ( $admin_users as $au ) {
|
foreach ( $admin_users as $au ) {
|
||||||
$au_email = $au->getEMailAddress();
|
$au_email = $au->getEMailAddress();
|
||||||
if ( $au_email !== '' && $au->isEnabled()) {
|
if ( $au_email && $au->isEnabled()) {
|
||||||
$to_arr[$au_email] = $au->getDisplayName();
|
$to_arr[$au_email] = $au->getDisplayName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue