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,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;
|
||||
|
Reference in New Issue
Block a user