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:
parent
7608eb0844
commit
b3effdf422
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue