bug:2645 author field is kept when comment not validated

git-svn-id: http://piwigo.org/svn/trunk@15570 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2012-06-05 19:51:54 +00:00
parent bf80d3f3bd
commit 56cfd9b3ac
2 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -240,17 +240,19 @@ SELECT
if ($show_add_comment_form)
{
$key = get_ephemeral_key(3, $page['image_id']);
$content = '';
$content = $author = '';
if ('reject'===@$comment_action)
{
$content = htmlspecialchars( stripslashes($comm['content']) );
$author = htmlspecialchars( stripslashes($comm['author']) );
}
$template->assign('comment_add',
array(
'F_ACTION' => $url_self,
'KEY' => $key,
'CONTENT' => $content,
'SHOW_AUTHOR' => !is_classic_user()
'SHOW_AUTHOR' => !is_classic_user(),
'AUTHOR' => $author ,
));
}
}