diff --git a/htdocs/core/modules/export/export_excel.modules.php b/htdocs/core/modules/export/export_excel.modules.php index 5a3f333577ce1997d02408f08a73d9756836b1d0..35f701d3860c3c6062a729e68241bb59270eb8a0 100644 --- a/htdocs/core/modules/export/export_excel.modules.php +++ b/htdocs/core/modules/export/export_excel.modules.php @@ -228,6 +228,8 @@ class ExportExcel extends ModeleExports */ function write_title($array_export_fields_label,$array_selected_sorted,$outputlangs,$array_types) { + global $conf; + // Create a format for the column headings if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) { @@ -281,6 +283,8 @@ class ExportExcel extends ModeleExports */ function write_record($array_selected_sorted,$objp,$outputlangs,$array_types) { + global $conf; + // Create a format for the column headings if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) { @@ -398,6 +402,8 @@ class ExportExcel extends ModeleExports */ function close_file() { + global $conf; + if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) { $this->workbook->close();