Commit 9ccdaf25 authored by Dries's avatar Dries
Browse files

- Patch #207736 by anantagati, BartVB, drewish et al: fixed undefined index.

parent abcebbfe
......@@ -814,7 +814,7 @@ function file_save_upload($source, $validators = array(), $destination = FALSE,
// If a file was uploaded, process it.
if (isset($_FILES['files']) && $_FILES['files']['name'][$source] && is_uploaded_file($_FILES['files']['tmp_name'][$source])) {
if (isset($_FILES['files']['name'][$source]) && is_uploaded_file($_FILES['files']['tmp_name'][$source])) {
// Check for file upload errors and return FALSE if a lower level system
// error occurred.
switch ($_FILES['files']['error'][$source]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment