Skip to content

Commit

Permalink
Fix: This is a 'superglobal', there is no need to do 'global $variable;'
Browse files Browse the repository at this point in the history
to access it within functions or methods.
  • Loading branch information
hregis committed Sep 12, 2012
1 parent a2f1107 commit 664ceb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/files.lib.php
Expand Up @@ -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']
{
Expand Down

0 comments on commit 664ceb7

Please sign in to comment.