forked from leftypol/leftypol
Bugfix: ?/ban did the same as ?/ban&delete
This commit is contained in:
parent
2cc17f8d9b
commit
9eb3a17faa
1 changed files with 1 additions and 1 deletions
|
@ -729,7 +729,7 @@ function mod_ban_post($board, $delete, $post) {
|
||||||
modLog("Attached a public ban message to post #{$post}: " . utf8tohtml($_POST['message']));
|
modLog("Attached a public ban message to post #{$post}: " . utf8tohtml($_POST['message']));
|
||||||
buildThread($thread ? $thread : $post);
|
buildThread($thread ? $thread : $post);
|
||||||
buildIndex();
|
buildIndex();
|
||||||
} elseif (isset($_POST['delete'])) {
|
} elseif (isset($_POST['delete']) && (int) $_POST['delete']) {
|
||||||
// Delete post
|
// Delete post
|
||||||
deletePost($post);
|
deletePost($post);
|
||||||
modLog("Deleted post #{$post}");
|
modLog("Deleted post #{$post}");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue