Add an exit to avoid to have apache hangs.
This commit is contained in:
parent
c665bfa3ee
commit
f97d81701b
@ -190,7 +190,7 @@ class ExportExcel extends ModeleExports
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!empty($conf->global->MAIN_USE_FILECACHE_EXPORT_EXCEL_DIR)) {
|
||||
$cacheMethod = PHPExcel_CachedObjectStorageFactory::cache_to_discISAM;
|
||||
$cacheSettings = array (
|
||||
@ -426,7 +426,7 @@ class ExportExcel extends ModeleExports
|
||||
$this->workbook->disconnectWorksheets();
|
||||
unset($this->workbook);
|
||||
}
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -95,7 +95,7 @@ class ExportExcel2007 extends ExportExcel
|
||||
$this->workbook->disconnectWorksheets();
|
||||
unset($this->workbook);
|
||||
}
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -992,7 +992,7 @@ if ($step == 4 && $datatoexport)
|
||||
|
||||
if ($step == 5 && $datatoexport)
|
||||
{
|
||||
asort($array_selected);
|
||||
asort($array_selected);
|
||||
|
||||
llxHeader('',$langs->trans("NewExport"),'EN:Module_Exports_En|FR:Module_Exports|ES:Módulo_Exportaciones');
|
||||
|
||||
@ -1142,6 +1142,7 @@ if ($step == 5 && $datatoexport)
|
||||
|
||||
print '</td><td width="50%"> </td></tr>';
|
||||
print '</table>';
|
||||
|
||||
}
|
||||
|
||||
print '<br>';
|
||||
@ -1150,6 +1151,8 @@ llxFooter();
|
||||
|
||||
$db->close();
|
||||
|
||||
exit; // don't know why but apache hangs with php 5.3.10-1ubuntu3.12 and apache 2.2.2 if i remove this exit or replace with return
|
||||
|
||||
|
||||
/**
|
||||
* Return table name of an alias. For this, we look for the "tablename as alias" in sql string.
|
||||
@ -1172,4 +1175,3 @@ function getablenamefromfield($code,$sqlmaxforexport)
|
||||
}
|
||||
else return '';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user