fixed access to history db from metaconsole

This commit is contained in:
alejandro.campos@artica.es 2022-07-26 12:50:57 +02:00
parent beefbff267
commit 3b50d84abd
1 changed files with 4 additions and 0 deletions

View File

@ -6897,6 +6897,10 @@ function reporting_sql($report, $content)
$historical_db = db_get_value_sql(
'SELECT historical_db from treport_content where id_rc ='.$content['id_rc']
);
if (is_metaconsole() === true) {
$historical_db = $content['historical_db'];
}
} else {
$historical_db = $content['historical_db'];
}