Private GIT

Skip to content
Snippets Groups Projects
Commit 8b9de8d2 authored by qgarnier's avatar qgarnier Committed by Kev
Browse files

Ref #5554

parent 96efb03a
Branches
Tags
No related merge requests found
......@@ -433,7 +433,7 @@ if (!is_null($host_id)) {
$optionsURL = "host_name=" . urlencode($host_name) . "&service_description=" . urlencode($svc_description);
$DBRES = $pearDBO->query("SELECT id FROM `index_data`, metrics WHERE metrics.index_id = index_data.id AND host_name LIKE '" . $pearDBO->escape($host_name) . "' AND service_description LIKE '" . $pearDBO->escape($svc_description) . "' LIMIT 1");
$DBRES = $pearDBO->query("SELECT id FROM `index_data` WHERE host_name = '" . $pearDBO->escape($host_name) . "' AND service_description = '" . $pearDBO->escape($svc_description) . "' LIMIT 1");
$index_data = 0;
if ($DBRES->numRows()) {
$row = $DBRES->fetchRow();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment