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:
parent
b02a1fc0db
commit
2d708984c4
@ -979,8 +979,8 @@ function mod_edit_ban($ban_id) {
|
|||||||
else
|
else
|
||||||
$new_ban['reason'] = $args['bans'][0]['reason'];
|
$new_ban['reason'] = $args['bans'][0]['reason'];
|
||||||
|
|
||||||
if (isset($_POST['ban_length']) && !empty($_POST['ban_length']))
|
if (isset($_POST['length']) && !empty($_POST['length']))
|
||||||
$new_ban['length'] = $_POST['ban_length'];
|
$new_ban['length'] = $_POST['length'];
|
||||||
else
|
else
|
||||||
$new_ban['length'] = false;
|
$new_ban['length'] = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user