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

Commit

Permalink
fix(pagination) fix pagination display in service monitoring (#7755)
Browse files Browse the repository at this point in the history
  • Loading branch information
loiclau authored Aug 7, 2019
1 parent a1fc3d3 commit 106890f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
$tabH = array();
$tabHG = array();
$tab_finalH = array();
$numRows = $DBRESULT->rowCount();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();
while ($ndo = $DBRESULT->fetch()) {
if (!isset($tab_finalH[$ndo["alias"]])) {
$tab_finalH[$ndo["alias"]] = array($ndo["host_name"] => array());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
}
}
$DBRESULT->execute();
$numRows = $DBRESULT->rowCount();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();

$class = "list_one";
$ct = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
}
}
$DBRESULT->execute();
$numRows = $DBRESULT->rowCount();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();

// Create XML Flow
$obj->XML = new CentreonXML();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@

$DBRESULT = $obj->DBC->query($query);

$numRows = $obj->DBC->numberRows();
$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn();


/** ***************************************************
Expand Down

0 comments on commit 106890f

Please sign in to comment.