From 3025ca0138059bf7c4f0b018d57721dd1950a81b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 21 Sep 2003 07:01:51 +0000 Subject: - Fixed bug 2803: a user's signature was being erased when administered. --- modules/comment.module | 2 +- modules/comment/comment.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/comment.module b/modules/comment.module index d45fec719..43060e2a0 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -117,7 +117,7 @@ function comment_user($type, $edit, &$user) { break; case "edit_form": // when user tries to edit his own data - return form_textarea(t("Signature"), "signature", $edit["signature"], 70, 3, t("Your signature will be publicly displayed at the end of your comments.") ."
". form_allowed_tags_text()); + return form_textarea(t("Signature"), "signature", $user->signature, 70, 3, t("Your signature will be publicly displayed at the end of your comments.") ."
". form_allowed_tags_text()); case "edit_validate": // validate user data editing return array("signature" => $edit["signature"]); diff --git a/modules/comment/comment.module b/modules/comment/comment.module index d45fec719..43060e2a0 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -117,7 +117,7 @@ function comment_user($type, $edit, &$user) { break; case "edit_form": // when user tries to edit his own data - return form_textarea(t("Signature"), "signature", $edit["signature"], 70, 3, t("Your signature will be publicly displayed at the end of your comments.") ."
". form_allowed_tags_text()); + return form_textarea(t("Signature"), "signature", $user->signature, 70, 3, t("Your signature will be publicly displayed at the end of your comments.") ."
". form_allowed_tags_text()); case "edit_validate": // validate user data editing return array("signature" => $edit["signature"]); -- cgit v1.2.3