From f54c384381e4b6de879a5ed90ca0e8149c9052de Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 20 Oct 2003 20:14:46 +0000 Subject: - Bugfix: fixed form() being called incorrectly. Fixed bug #3699 reported by Julian. --- modules/user.module | 5 ++--- modules/user/user.module | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/user.module b/modules/user.module index cdb968e43..82f567551 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1064,7 +1064,7 @@ function user_edit($edit = array()) { $output .= form_item(t("Password"), " ", 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"); 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"), " ", 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"); -- cgit v1.2.3