bans.php: split findSingle implementations

This commit is contained in:
Zankaria authored and Zankaria committed 2024-08-11 10:28:08 +02:00
1 parent e4707ee2a8
commit 980b2ef7bf
2 files changed
+59 -35

No files matched your search

+1 -1
View File
@@ -1439,7 +1439,7 @@ if (isset($_POST['delete'])) {
$ban_id = (int)$_POST['ban_id'];
$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']);