Browse Source

Fix name typo in post edit SQL

pull/40/head
discomrade 3 years ago
parent
commit
60956c57ee
  1. 2
      inc/mod/pages.php

2
inc/mod/pages.php

@ -2020,7 +2020,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']);

Loading…
Cancel
Save