diff --git a/src/Service/UptimeRobotApiService.php b/src/Service/UptimeRobotApiService.php index 3f5cc0b..73f7033 100644 --- a/src/Service/UptimeRobotApiService.php +++ b/src/Service/UptimeRobotApiService.php @@ -97,10 +97,11 @@ class UptimeRobotApiService $alertContacts = explode(',', $alertContactsString); foreach ($alertContacts as $alertContactName) { - - $alertContact = $this->alertContactService->findbyName($alertContactName); - if ($alertContact instanceof AlertContact) { - $this->alertContacts[] = $alertContact; + if (!empty($alertContactName)) { + $alertContact = $this->alertContactService->findbyName($alertContactName); + if ($alertContact instanceof AlertContact) { + $this->alertContacts[] = $alertContact; + } } } }