Fix: This is a 'superglobal', there is no need to do 'global $variable;'

to access it within functions or methods.
This commit is contained in:
Regis Houssin 2012-09-12 14:55:39 +02:00
parent a2f1107bfc
commit 664ceb7f2c

View File

@ -994,7 +994,7 @@ function dol_init_file_process($pathtoscan='')
*/
function dol_add_file_process($upload_dir,$allowoverwrite=0,$donotupdatesession=0,$varfiles='addedfile')
{
global $db,$user,$conf,$langs,$_FILES;
global $db,$user,$conf,$langs;
if (! empty($_FILES[$varfiles])) // For view $_FILES[$varfiles]['error']
{