Commit 12dcc759 authored by Laurent Pinsivy's avatar Laurent Pinsivy Committed by loiclau

fix(admin): add default value for broker option (#6033)

* fix(admin): add default value for broker option
parent e90e188f
......@@ -164,7 +164,12 @@ function updateNagiosConfigData($gopt_id = null)
isset($ret["interval_length"]) && $ret["interval_length"] != null
? $pearDB->escape($ret["interval_length"]) : "NULL"
);
updateOption($pearDB, "broker", $pearDB->escape($ret['broker']));
updateOption(
$pearDB,
"broker",
isset($ret["broker"]) && $ret["broker"] != null
? $pearDB->escape($ret['broker']) : "broker"
);
$pearDB->query("UPDATE acl_resources SET changed = 1");
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment