Browse Source

Fix wrong variable used in ban lookup (#376)

` $_SERVER['REMOTE_ADDR']` was hardcoded in ban lookup instead of `$ip` variable
main
papereth 4 years ago
committed by GitHub
parent
commit
a268004c7a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      inc/functions.php

2
inc/functions.php

@ -930,7 +930,7 @@ function checkBan($board = false) {
}
foreach ($ips as $ip) {
$bans = Bans::find($_SERVER['REMOTE_ADDR'], $board, $config['show_modname']);
$bans = Bans::find($ip, $board, $config['show_modname']);
foreach ($bans as &$ban) {
if ($ban['expires'] && $ban['expires'] < time()) {

Loading…
Cancel
Save