summaryrefslogtreecommitdiff
path: root/modules/file
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-10 07:58:40 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-10 07:58:40 +0000
commite4aab2d289ee97b563c9399b0b0580eaad4beda4 (patch)
tree396dbb76aeae2864b3988fdbb09420a867c01df7 /modules/file
parent14c7a79e3f26da9690068ff0c72aaa6f40ce793a (diff)
downloadbrdo-e4aab2d289ee97b563c9399b0b0580eaad4beda4.tar.gz
brdo-e4aab2d289ee97b563c9399b0b0580eaad4beda4.tar.bz2
#763376 follow-up by fago, sun, effulgentsia: Minor adjustments to drupal_array_set/get_nested_value().
Diffstat (limited to 'modules/file')
-rw-r--r--modules/file/file.module2
1 files changed, 1 insertions, 1 deletions
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