Bugfix: allow mods to edit poster name at edit post page

This commit is contained in:
antedeguemon 2017-07-29 20:23:18 -03:00
parent d5ee60009f
commit 4d1dc45a7c

View File

@ -1547,7 +1547,7 @@ function mod_edit_post($board, $edit_raw_html, $postID) {
else
$query = prepare(sprintf('UPDATE ``posts_%s`` SET `name` = :name, `email` = :email, `subject` = :subject, `body_nomarkup` = :body WHERE `id` = :id', $board));
$query->bindValue(':id', $postID);
$query->bindValue('name', $_POST['name']);
$query->bindValue(':name', $_POST['name']);
$query->bindValue(':email', $_POST['email']);
$query->bindValue(':subject', $_POST['subject']);
$query->bindValue(':body', $_POST['body']);