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:06:04 +02:00
parent 73ae001a3f
commit 1d589d7472

View File

@ -5657,6 +5657,12 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
}
if (modules_is_disable_agent($item['id_agent_module'])) {
//Restore dbconnection
if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) {
metaconsole_restore_db();
}
continue;
}