Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Fix: Remove obsolete code in monitoring common functions (#11844)
Browse files Browse the repository at this point in the history
  • Loading branch information
emabassi-ext authored Sep 22, 2022
1 parent c22ab19 commit 4f1b010
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions www/include/monitoring/common-Func.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,6 @@
exit();
}

function getMyHostRow($host_id = null, $rowdata)
{
global $pearDB;
if (!$host_id) {
exit();
}
while (1) {
$DBRESULT = $pearDB->query("SELECT host_" . $rowdata .
", host_template_model_htm_id FROM host WHERE host_id = '" . CentreonDB::escape($host_id) . "' LIMIT 1");
$row = $DBRESULT->fetchRow();
if ($row["host_" . $rowdata]) {
return $row["host_$rowdata"];
} elseif ($row["host_template_model_htm_id"]) {
$host_id = $row["host_template_model_htm_id"];
} else {
break;
}
}
}

function get_user_param($user_id, $pearDB)
{
$list_param = array(
Expand Down

0 comments on commit 4f1b010

Please sign in to comment.