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

This commit is contained in:
mdtrooper 2015-06-01 12:45:42 +02:00
parent 1d589d7472
commit 71ca2f1de7

View File

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