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')
|
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']
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user