From 17d93182c113b5097a8f278907827dc24455d0b1 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 28 Jul 2016 20:28:23 +0100 Subject: [PATCH] Added check for empty emails --- includes/alerts.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/alerts.inc.php b/includes/alerts.inc.php index 37632cdd19..c18131f3bc 100644 --- a/includes/alerts.inc.php +++ b/includes/alerts.inc.php @@ -287,7 +287,9 @@ function GetContacts($results) { if (strstr($email, ',')) { $split_contacts = preg_split("/[,\s]+/", $email); foreach ($split_contacts as $split_email) { - $tmp_contacts[$split_email] = $name; + if(!empty($split_email)) { + $tmp_contacts[$split_email] = $name; + } } } else { $tmp_contacts[$email] = $name;