# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\xampp\htdocs\limesurvey # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: save.php --- save.php Base (BASE) +++ save.php Locally Modified (Based On LOCAL) @@ -500,7 +500,7 @@ // 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/";