forked from leftypol/leftypol
bans.php: split findSingle implementations
This commit is contained in:
parent
81f132dcf9
commit
b88abb1c33
2 changed files with 59 additions and 34 deletions
2
post.php
2
post.php
|
@ -1673,7 +1673,7 @@ function handle_appeal()
|
|||
$ban_id = (int) $_POST['ban_id'];
|
||||
|
||||
$source_ip = $_SERVER['REMOTE_ADDR'];
|
||||
$ban = Bans::findSingle($_SERVER['REMOTE_ADDR'], $ban_id, $config['require_ban_view']);
|
||||
$ban = Bans::findSingle($_SERVER['REMOTE_ADDR'], $ban_id, $config['require_ban_view'], true);
|
||||
|
||||
if (empty($ban)) {
|
||||
error($config['error']['noban']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue