From 7a7cd1ab281e6aef90d63f08868e3c9ab5b4745f Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Sat, 27 Jan 2024 19:13:42 -0500 Subject: [PATCH] Fix bug where delete was not working on ban page - it was only working on the ban&delete page --- inc/mod/pages.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 404fdbf6..f57419ba 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1809,11 +1809,10 @@ function mod_ban_post(string $board, $delete, $post_num, $token = false) { } $will_ban = true; - $will_delete = true; + $will_delete = isset($_POST['delete']) && (int) $_POST['delete']; $will_spamnoticer = isset($_POST['spamnoticer']); require_once 'inc/spamnoticer.php'; - require_once 'inc/anti-bot.php'; if ($will_spamnoticer) { $spamnoticer_info = parse_spamnoticer_content_fields($_POST, $po); @@ -1837,8 +1836,6 @@ function mod_ban_post(string $board, $delete, $post_num, $token = false) { $_POST['length'], $_POST['board']); - $will_delete = $will_delete && isset($_POST['delete']) && (int) $_POST['delete']; - $has_public_message = isset($_POST['public_message'], $_POST['message']); if ($will_ban) {