diff --git a/www/include/monitoring/status/ServicesHostGroups/xml/serviceGridByHGXML.php b/www/include/monitoring/status/ServicesHostGroups/xml/serviceGridByHGXML.php index 855f002571b..2a7969bf252 100644 --- a/www/include/monitoring/status/ServicesHostGroups/xml/serviceGridByHGXML.php +++ b/www/include/monitoring/status/ServicesHostGroups/xml/serviceGridByHGXML.php @@ -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()); diff --git a/www/include/monitoring/status/ServicesHostGroups/xml/serviceSummaryByHGXML.php b/www/include/monitoring/status/ServicesHostGroups/xml/serviceSummaryByHGXML.php index 8c256c135a3..8e005e87bb5 100644 --- a/www/include/monitoring/status/ServicesHostGroups/xml/serviceSummaryByHGXML.php +++ b/www/include/monitoring/status/ServicesHostGroups/xml/serviceSummaryByHGXML.php @@ -146,7 +146,7 @@ } } $DBRESULT->execute(); -$numRows = $DBRESULT->rowCount(); +$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn(); $class = "list_one"; $ct = 0; diff --git a/www/include/monitoring/status/ServicesServiceGroups/xml/serviceGridBySGXML.php b/www/include/monitoring/status/ServicesServiceGroups/xml/serviceGridBySGXML.php index 975f77b99b0..c95d8b1508c 100644 --- a/www/include/monitoring/status/ServicesServiceGroups/xml/serviceGridBySGXML.php +++ b/www/include/monitoring/status/ServicesServiceGroups/xml/serviceGridBySGXML.php @@ -161,7 +161,7 @@ } } $DBRESULT->execute(); -$numRows = $DBRESULT->rowCount(); +$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn(); // Create XML Flow $obj->XML = new CentreonXML(); diff --git a/www/include/monitoring/status/ServicesServiceGroups/xml/serviceSummaryBySGXML.php b/www/include/monitoring/status/ServicesServiceGroups/xml/serviceSummaryBySGXML.php index 067bcaf8731..05513e38b9b 100644 --- a/www/include/monitoring/status/ServicesServiceGroups/xml/serviceSummaryBySGXML.php +++ b/www/include/monitoring/status/ServicesServiceGroups/xml/serviceSummaryBySGXML.php @@ -141,7 +141,7 @@ $DBRESULT = $obj->DBC->query($query); -$numRows = $obj->DBC->numberRows(); +$numRows = $obj->DBC->query("SELECT FOUND_ROWS()")->fetchColumn(); /** ***************************************************