diff --git a/html/includes/forms/test-transport.inc.php b/html/includes/forms/test-transport.inc.php index 2f55827324..6bc3bbfc36 100644 --- a/html/includes/forms/test-transport.inc.php +++ b/html/includes/forms/test-transport.inc.php @@ -55,12 +55,10 @@ if ($transport_id) { $class = 'LibreNMS\\Alert\\Transport\\' . ucfirst($transport); if (class_exists($class)) { $opts = $config['alert']['transports'][$transport]; - if ($opts) { - $instance = new $class($transport_id); - $tmp = $instance->deliverAlert($obj, $opts); - if ($tmp) { - $status = 'ok'; - } + $instance = new $class($transport_id); + $tmp = $instance->deliverAlert($obj, $opts); + if ($tmp) { + $status = 'ok'; } } header('Content-type: application/json');