mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'ent-3989-graficas-sql-metaconsola' into 'develop'
Available in metaconsole sql charts in reports for metaconsole server See merge request artica/pandorafms!2697
This commit is contained in:
commit
2dfc2b7a8a
@ -3609,7 +3609,7 @@ function graph_custom_sql_graph(
|
|||||||
$sql = io_safe_output($sql['sql']);
|
$sql = io_safe_output($sql['sql']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($config['metaconsole'] == 1) && defined('METACONSOLE')) {
|
if (($config['metaconsole'] == 1) && defined('METACONSOLE') && $report_content['server_name'] != '' && $report_content['server_name'] != '0') {
|
||||||
$metaconsole_connection = enterprise_hook('metaconsole_get_connection', [$report_content['server_name']]);
|
$metaconsole_connection = enterprise_hook('metaconsole_get_connection', [$report_content['server_name']]);
|
||||||
|
|
||||||
if ($metaconsole_connection === false) {
|
if ($metaconsole_connection === false) {
|
||||||
@ -3624,7 +3624,7 @@ function graph_custom_sql_graph(
|
|||||||
|
|
||||||
$data_result = db_get_all_rows_sql($sql, $historical_db);
|
$data_result = db_get_all_rows_sql($sql, $historical_db);
|
||||||
|
|
||||||
if (($config['metaconsole'] == 1) && defined('METACONSOLE')) {
|
if (($config['metaconsole'] == 1) && defined('METACONSOLE') && $report_content['server_name'] != '' && $report_content['server_name'] != '0') {
|
||||||
enterprise_hook('metaconsole_restore_db');
|
enterprise_hook('metaconsole_restore_db');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user