summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/upload.module2
-rw-r--r--modules/upload/upload.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/upload.module b/modules/upload.module
index 50b249ede..2bc042497 100644
--- a/modules/upload.module
+++ b/modules/upload.module
@@ -244,7 +244,7 @@ function upload_form_alter($form_id, &$form) {
'#weight' => 30,
);
$form['attachments'] += _upload_form($node);
- $form['#attributes'] = array('enctype' => 'multipart/form-data');
+ $form['#attributes']['enctype'] = 'multipart/form-data';
}
}
}
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index 50b249ede..2bc042497 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -244,7 +244,7 @@ function upload_form_alter($form_id, &$form) {
'#weight' => 30,
);
$form['attachments'] += _upload_form($node);
- $form['#attributes'] = array('enctype' => 'multipart/form-data');
+ $form['#attributes']['enctype'] = 'multipart/form-data';
}
}
}