From 3940e7b716327a43677417ec7d0ec7f9b79d17ba Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 11 Apr 2018 15:51:39 +0200 Subject: [PATCH] Fix:Email not sent to admins when one have no email --- service/mailservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/mailservice.php b/service/mailservice.php index a9b0e57..e9a301e 100644 --- a/service/mailservice.php +++ b/service/mailservice.php @@ -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(); } }