diff --git a/modules/user.module b/modules/user.module
index ca83fd1f66e817e759cb63d1df124da02cafb633..89acdf372d252d41d43bc5076537d24b1334afc1 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 ca83fd1f66e817e759cb63d1df124da02cafb633..89acdf372d252d41d43bc5076537d24b1334afc1 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);