diff --git a/LibreNMS/Alert/Transport/Gitlab.php b/LibreNMS/Alert/Transport/Gitlab.php index 3fe52e498172..93a0b043585c 100644 --- a/LibreNMS/Alert/Transport/Gitlab.php +++ b/LibreNMS/Alert/Transport/Gitlab.php @@ -40,12 +40,10 @@ public function deliverAlert($obj, $opts) public function contactGitlab($obj, $opts) { // Don't create tickets for resolutions - if ($obj['state'] == 0) { - return true; - } else { + if ($obj['state'] != 0) { $device = device_by_id_cache($obj['device_id']); // for event logging - $project_id = $opts['project_id']; + $project_id = $opts['project-id']; $project_key = $opts['key']; $details = "Librenms alert for: " . $obj['hostname']; $description = $obj['msg'];