diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 6bda7ae..6e50139 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -1308,7 +1308,7 @@ function file_managed_file_value(&$element, $input = FALSE, $form_state = NULL) // Load files if the FIDs have changed to confirm they exist. if (!empty($input['fids'])) { $fids = array(); - foreach ($input['fids'] as $key => $fid) { + foreach ($input['fids'] as $fid) { if ($file = file_load($fid)) { $fids[] = $file->id(); } @@ -1331,7 +1331,7 @@ function file_managed_file_value(&$element, $input = FALSE, $form_state = NULL) // Confirm that the file exists when used as a default value. if (!empty($default_fids)) { $fids = array(); - foreach ($default_fids as $key => $fid) { + foreach ($default_fids as $fid) { if ($file = file_load($fid)) { $fids[] = $file->id(); }