Fixed test transport form (#8942)

This commit is contained in:
Neil Lathwood
2018-07-25 09:00:24 +01:00
committed by GitHub
parent 24d84aec9d
commit 3a2774ae1e

View File

@ -55,13 +55,11 @@ 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';
}
}
}
header('Content-type: application/json');
echo _json_encode(array('status' => $status));