mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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:
parent
a2f1107bfc
commit
664ceb7f2c
|
|
@ -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']
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user