Fixed the general report in metaconsole with some agents disabled.

This commit is contained in:
mdtrooper 2015-07-17 17:26:37 +02:00
parent aeedcd0ec3
commit 6aa2d6c66c
1 changed files with 5 additions and 0 deletions

View File

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