forked from leftypol/leftypol
bans.php: group deletions
This commit is contained in:
parent
3e298c59fc
commit
b009fc749e
2 changed files with 70 additions and 10 deletions
10
post.php
10
post.php
|
@ -1673,15 +1673,9 @@ function handle_appeal()
|
|||
$ban_id = (int) $_POST['ban_id'];
|
||||
|
||||
$source_ip = $_SERVER['REMOTE_ADDR'];
|
||||
$bans = Bans::find($source_ip);
|
||||
foreach ($bans as $_ban) {
|
||||
if ($_ban['id'] == $ban_id) {
|
||||
$ban = $_ban;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$ban = Bans::findSingle($_SERVER['REMOTE_ADDR'], $ban_id, $config['require_ban_view']);
|
||||
|
||||
if (!isset($ban)) {
|
||||
if (empty($ban)) {
|
||||
error($config['error']['noban']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue