From e4aab2d289ee97b563c9399b0b0580eaad4beda4 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 10 Sep 2010 07:58:40 +0000 Subject: #763376 follow-up by fago, sun, effulgentsia: Minor adjustments to drupal_array_set/get_nested_value(). --- modules/file/file.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/file/file.module') diff --git a/modules/file/file.module b/modules/file/file.module index bc0e292cc..a79c8f542 100644 --- a/modules/file/file.module +++ b/modules/file/file.module @@ -572,7 +572,7 @@ function file_managed_file_submit($form, &$form_state) { // and set $element to the managed_file element that contains that button. $parents = $form_state['triggering_element']['#array_parents']; $button_key = array_pop($parents); - list($element) = drupal_array_get_nested_value($form, $parents); + $element = drupal_array_get_nested_value($form, $parents); // No action is needed here for the upload button, because all file uploads on // the form are processed by file_managed_file_value() regardless of which -- cgit v1.2.3