Private GIT

Skip to content
Snippets Groups Projects
Commit 29061e94 authored by Guillaume28's avatar Guillaume28
Browse files

fix little error

parent fe7592fc
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ $tpl->assign('poller_name', $pollerName);
$queryStatName = "SELECT config_name, cache_directory "
. "FROM cfg_centreonbroker "
. "WHERE stats_activate='1' "
. "AND ns_nagios_server = " . CentreonDB::escape($selectedPoller) . " ";
. "AND ns_nagios_server = ?";
$stmt = $pearDB->prepare($queryStatName);
$res = $pearDB->execute($stmt, array($selectedPoller));
if (PEAR::isError($res)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment