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:47:39 +02:00
parent fd90f637df
commit 0df14010c9
1 changed files with 5 additions and 0 deletions

View File

@ -733,6 +733,11 @@ function reporting_SLA($report, $content, $type = 'dinamic',
}
if (modules_is_disable_agent($sla['id_agent_module'])) {
if (($config ['metaconsole'] == 1) && defined('METACONSOLE')) {
//Restore db connection
metaconsole_restore_db();
}
continue;
}