mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-30 03:47:31 +01:00
Bugfix: ?/ban did the same as ?/ban&delete
This commit is contained in:
parent
b00a63e48f
commit
8ad09013c5
@ -729,7 +729,7 @@ function mod_ban_post($board, $delete, $post) {
|
||||
modLog("Attached a public ban message to post #{$post}: " . utf8tohtml($_POST['message']));
|
||||
buildThread($thread ? $thread : $post);
|
||||
buildIndex();
|
||||
} elseif (isset($_POST['delete'])) {
|
||||
} elseif (isset($_POST['delete']) && (int) $_POST['delete']) {
|
||||
// Delete post
|
||||
deletePost($post);
|
||||
modLog("Deleted post #{$post}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user