1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 10:00:49 +01:00

bans.php: surpress error

This commit is contained in:
czaks 2014-10-09 02:00:31 +02:00
parent 948695e73c
commit ef3bb46876

View File

@ -181,7 +181,7 @@ class Bans {
$ban['username'] = '?'; $ban['username'] = '?';
} }
if ($filter_ips || ($board_access !== false && !in_array($ban['board'], $board_access))) { 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'] = preg_split("/[\.:]/", $ban['mask']);
$ban['mask'] = array_slice($ban['mask'], 0, 2); $ban['mask'] = array_slice($ban['mask'], 0, 2);
$ban['mask'] = implode(".", $ban['mask']); $ban['mask'] = implode(".", $ban['mask']);