From 002f6c936136149b44127937d9bf87fb7f770414 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 20 Sep 2004 20:02:42 +0000 Subject: - Patch #10722 by drumm: the user's signature was not remembered when the 'my account' form was found to be invalid. --- modules/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index af71c129a..acb9679c0 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -327,7 +327,7 @@ function comment_update_index() { function comment_user($type, $edit, &$user, $category = NULL) { if ($type == 'form' && $category == 'account') { // when user tries to edit his own data - return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $user->signature, 64, 3, t('Your signature will be publicly displayed at the end of your comments.')), 'weight' => 2)); + return array(array('title' => t('Comment settings'), 'data' => form_textarea(t('Signature'), 'signature', $edit['signature'], 64, 3, t('Your signature will be publicly displayed at the end of your comments.')), 'weight' => 2)); } if ($type == 'validate') { // validate user data editing -- cgit v1.2.3