Skip to content
Snippets Groups Projects
Commit 664ceb7f authored by Regis Houssin's avatar Regis Houssin
Browse files

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

to access it within functions or methods. 
parent a2f1107b
No related branches found
No related tags found
No related merge requests found
...@@ -994,7 +994,7 @@ function dol_init_file_process($pathtoscan='') ...@@ -994,7 +994,7 @@ function dol_init_file_process($pathtoscan='')
*/ */
function dol_add_file_process($upload_dir,$allowoverwrite=0,$donotupdatesession=0,$varfiles='addedfile') 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'] if (! empty($_FILES[$varfiles])) // For view $_FILES[$varfiles]['error']
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment