Fix a bug where we were not passing an integer but an array instead

- I'm not sure how bans worked otherwise
This commit is contained in:
towards-a-new-leftypol 2024-01-27 18:37:59 -05:00
parent 7608eb0844
commit b3effdf422
1 changed files with 1 additions and 1 deletions

View File

@ -1860,7 +1860,7 @@ function mod_ban_post(string $board, $delete, $post_num, $token = false) {
$query->bindValue(':id', $post_num);
$query->bindValue(':body_nomarkup', sprintf("\n<tinyboard ban message>%s</tinyboard>", utf8tohtml($_POST['message'])));
$query->execute() or error(db_error($query));
rebuildPost($post);
rebuildPost($post_num);
modLog("Attached a public ban message to post #{$post_num}: " . utf8tohtml($_POST['message']));
buildThread($thread ? $thread : $post_num);