Skip to content

Commit

Permalink
Fixed issue #05282: save.php error when trying to save a fileUpload f…
Browse files Browse the repository at this point in the history
…ield, but no file was uploaded

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@10289 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
TMSWhite committed Jun 18, 2011
1 parent 44ff992 commit be9e6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion save.php
Expand Up @@ -500,7 +500,7 @@ function createinsertquery()
// if the files have not been saved already,
// move the files from tmp to the files folder

if (file_exists("tmp/upload/".$phparray[0]->filename))
if (!is_null($phparray) && count($phparray) > 0 && file_exists("tmp/upload/".$phparray[0]->filename))
{
// move files from temp to files directory
$tmp = "tmp/upload/";
Expand Down

0 comments on commit be9e6dc

Please sign in to comment.