1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

fix: vichan ban length post variable is different than npfchan. causing the ban to be always permanent

This commit is contained in:
fowr 2023-01-13 09:22:53 -03:00 committed by Fredrick Brennan
parent b02a1fc0db
commit 2d708984c4

View File

@ -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;