From fc2da38cbdc6ec8e280c392023f7cc0b5e2a6573 Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Fri, 23 Apr 2021 08:58:23 +0200 Subject: [PATCH] Fixed errors charts in open --- pandora_console/include/graphs/export_data.php | 5 ++--- pandora_console/include/graphs/functions_flot.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/graphs/export_data.php b/pandora_console/include/graphs/export_data.php index f4de87ff3c..a3c42577be 100644 --- a/pandora_console/include/graphs/export_data.php +++ b/pandora_console/include/graphs/export_data.php @@ -36,9 +36,8 @@ global $config; $user_language = get_user_language($config['id_user']); $l10n = null; if (file_exists('../languages/'.$user_language.'.mo') === true) { - $l10n = new gettext_reader( - new CachedFileReader('../languages/'.$user_language.'.mo') - ); + $cf = new CachedFileReader('../languages/'.$user_language.'.mo'); + $l10n = new gettext_reader($cf); $l10n->load_tables(); } diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index 419e631995..7ff3157500 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -369,7 +369,7 @@ function menu_graph( } // Export buttons. - if ($params['show_export_csv']) { + if ($params['show_export_csv'] && enterprise_installed() === true) { $return .= "".__("; }