summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-20 20:14:46 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-20 20:14:46 +0000
commitf54c384381e4b6de879a5ed90ca0e8149c9052de (patch)
treeb23d33fd4d1134f548bf55aa59e34ee8bedb58f2 /modules/user/user.module
parent4fdad7aa0795807f267d0b8206b79d881c1331c1 (diff)
downloadbrdo-f54c384381e4b6de879a5ed90ca0e8149c9052de.tar.gz
brdo-f54c384381e4b6de879a5ed90ca0e8149c9052de.tar.bz2
- Bugfix: fixed form() being called incorrectly. Fixed bug #3699 reported
by Julian.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index cdb968e43..82f567551 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1064,7 +1064,7 @@ function user_edit($edit = array()) {
$output .= form_item(t("Password"), "<input type=\"password\" name=\"edit[pass1]\" size=\"12\" maxlength=\"24\" /> <input type=\"password\" name=\"edit[pass2]\" size=\"12\" maxlength=\"24\" />", t("Enter your new password twice if you want to change your current password or leave it blank if you are happy with your current password."));
$output .= form_submit(t("Save user information"));
- $output = form($output, "post", 0, "enctype=\"multipart/form-data\"");
+ $output = form($output, "post", 0, array("enctype" => "multipart/form-data"));
// the "enctype" attribute is required to upload files such as avatars
}
else {
@@ -1559,8 +1559,7 @@ function user_admin_edit($edit = array()) {
$output .= form_submit(t("Save account"));
$output .= form_submit(t("Delete account"));
- $output = form($output, "post", 0, "enctype=\"multipart/form-data\"");
-
+ $output = form($output, "post", 0, array("enctype" => "multipart/form-data"));
}
else {
$output = t("No such user");