From 2d708984c419ad5d2a80bf9bc6a495c0dca2a8f9 Mon Sep 17 00:00:00 2001 From: fowr <89118232+perdedora@users.noreply.github.com> Date: Fri, 13 Jan 2023 09:22:53 -0300 Subject: [PATCH] fix: vichan ban length post variable is different than npfchan. causing the ban to be always permanent --- inc/mod/pages.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 6f73f0ab..c213fdbb 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -979,8 +979,8 @@ function mod_edit_ban($ban_id) { else $new_ban['reason'] = $args['bans'][0]['reason']; - if (isset($_POST['ban_length']) && !empty($_POST['ban_length'])) - $new_ban['length'] = $_POST['ban_length']; + if (isset($_POST['length']) && !empty($_POST['length'])) + $new_ban['length'] = $_POST['length']; else $new_ban['length'] = false;