Browse Source

[svn r9875] Added selective criteria to avoid using $_FILES when empty

Yannick Warnier 18 years ago
parent
commit
57f9c5125e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main/newscorm/lp_upload.php

+ 1 - 0
main/newscorm/lp_upload.php

@@ -24,6 +24,7 @@ $uncompress  = 1;
 
 if ($_SERVER['REQUEST_METHOD'] == 'POST' 
 	&& count($_FILES)>0
+	&& !empty($_FILES['user_file']['name'])
 	)
 {