Fixed the groups_get_status

This commit is contained in:
mdtrooper 2014-09-25 19:37:02 +02:00
parent eeb3a6fe64
commit 32bf0e8363
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,6 @@
// GNU General Public License for more details. // GNU General Public License for more details.
require_once ($config['homedir'].'/include/functions_users.php'); require_once ($config['homedir'].'/include/functions_users.php');
require_once ($config['homedir'].'/include/functions_reporting.php');
/** /**
* Check if the group is in use in the Pandora DB. * Check if the group is in use in the Pandora DB.
@ -532,6 +531,10 @@ function groups_get_groups_tree_recursive($groups, $trash = 0, $trash2 = 0) {
* @return int Status of the agents. * @return int Status of the agents.
*/ */
function groups_get_status ($id_group = 0) { function groups_get_status ($id_group = 0) {
global $config;
require_once ($config['homedir'].'/include/functions_reporting.php');
$data = reporting_get_group_stats($id_group); $data = reporting_get_group_stats($id_group);
if ($data['monitor_alerts_fired'] > 0) { if ($data['monitor_alerts_fired'] > 0) {