diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-16 14:58:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-16 14:58:28 +0000 |
commit | 9ccdaf2594767054262f7bfc9418d78e6983f5a9 (patch) | |
tree | 9db3341866e9e52af2332f2b5c462bb5ed5eccf9 /includes | |
parent | abcebbfee2b2daf41a7eabfba436691d020f9f73 (diff) | |
download | brdo-9ccdaf2594767054262f7bfc9418d78e6983f5a9.tar.gz brdo-9ccdaf2594767054262f7bfc9418d78e6983f5a9.tar.bz2 |
- Patch #207736 by anantagati, BartVB, drewish et al: fixed undefined index.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index b79525b5b..27d9d729a 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -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]) { |