mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added check for empty emails
This commit is contained in:
@@ -287,8 +287,10 @@ function GetContacts($results) {
|
|||||||
if (strstr($email, ',')) {
|
if (strstr($email, ',')) {
|
||||||
$split_contacts = preg_split("/[,\s]+/", $email);
|
$split_contacts = preg_split("/[,\s]+/", $email);
|
||||||
foreach ($split_contacts as $split_email) {
|
foreach ($split_contacts as $split_email) {
|
||||||
|
if(!empty($split_email)) {
|
||||||
$tmp_contacts[$split_email] = $name;
|
$tmp_contacts[$split_email] = $name;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$tmp_contacts[$email] = $name;
|
$tmp_contacts[$email] = $name;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user