Fixed the availability item in the reports into metaconsole when some agents into this is disabled.

This commit is contained in:
mdtrooper 2015-06-01 12:09:44 +02:00
parent 84fb973c6f
commit fd90f637df
1 changed files with 5 additions and 0 deletions

View File

@ -3672,6 +3672,11 @@ function reporting_availability($report, $content) {
}
if (modules_is_disable_agent($item['id_agent_module'])) {
//Restore dbconnection
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
metaconsole_restore_db();
}
continue;
}