summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/user.module2
-rw-r--r--modules/user/user.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/user.module b/modules/user.module
index ca83fd1f6..89acdf372 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1411,7 +1411,7 @@ function user_edit($category = 'account') {
if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
- $form['#attributes'] = array('enctype' => 'multipart/form-data');
+ $form['#attributes']['enctype'] = 'multipart/form-data';
drupal_set_title($account->name);
return drupal_get_form('user_edit', $form);
diff --git a/modules/user/user.module b/modules/user/user.module
index ca83fd1f6..89acdf372 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1411,7 +1411,7 @@ function user_edit($category = 'account') {
if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
- $form['#attributes'] = array('enctype' => 'multipart/form-data');
+ $form['#attributes']['enctype'] = 'multipart/form-data';
drupal_set_title($account->name);
return drupal_get_form('user_edit', $form);