forked from leftypol/leftypol
bans.php: surpress error
This commit is contained in:
parent
948695e73c
commit
ef3bb46876
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ class Bans {
|
|||
$ban['username'] = '?';
|
||||
}
|
||||
if ($filter_ips || ($board_access !== false && !in_array($ban['board'], $board_access))) {
|
||||
list($ban['mask'], $subnet) = explode("/", $ban['mask']);
|
||||
@list($ban['mask'], $subnet) = explode("/", $ban['mask']);
|
||||
$ban['mask'] = preg_split("/[\.:]/", $ban['mask']);
|
||||
$ban['mask'] = array_slice($ban['mask'], 0, 2);
|
||||
$ban['mask'] = implode(".", $ban['mask']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue