Skip to content
Snippets Groups Projects
Commit 0a08f3c6 authored by Raphaël Doursenaud's avatar Raphaël Doursenaud
Browse files

Qual: Missing global declaration

parent 12ba7514
No related branches found
No related tags found
No related merge requests found
...@@ -228,6 +228,8 @@ class ExportExcel extends ModeleExports ...@@ -228,6 +228,8 @@ class ExportExcel extends ModeleExports
*/ */
function write_title($array_export_fields_label,$array_selected_sorted,$outputlangs,$array_types) function write_title($array_export_fields_label,$array_selected_sorted,$outputlangs,$array_types)
{ {
global $conf;
// Create a format for the column headings // Create a format for the column headings
if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL))
{ {
...@@ -281,6 +283,8 @@ class ExportExcel extends ModeleExports ...@@ -281,6 +283,8 @@ class ExportExcel extends ModeleExports
*/ */
function write_record($array_selected_sorted,$objp,$outputlangs,$array_types) function write_record($array_selected_sorted,$objp,$outputlangs,$array_types)
{ {
global $conf;
// Create a format for the column headings // Create a format for the column headings
if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL))
{ {
...@@ -398,6 +402,8 @@ class ExportExcel extends ModeleExports ...@@ -398,6 +402,8 @@ class ExportExcel extends ModeleExports
*/ */
function close_file() function close_file()
{ {
global $conf;
if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL))
{ {
$this->workbook->close(); $this->workbook->close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment