Add service templates

This commit is contained in:
Anthony F McInerney
2020-09-27 16:20:47 +01:00
parent 9384831f2a
commit 253ad87d33
+1 -1
View File
@@ -39,7 +39,7 @@ if (is_numeric($service_id) && $service_id > 0) {
} else {
// Need to add.
$service_id = add_service($device_id, $type, $desc, $ip, $param, $ignore, $disabled, 0, $name, 0);
if ($service_id == null) {
if ($service_id === null) {
$status = ['status' =>1, 'message' => 'ERROR: Failed to add Service: <i>' . $type . '</i>'];
} else {
$status = ['status' =>0, 'message' => 'Added Service: <i>' . $service_id . ': ' . $type . '</i>'];