bans.php: fix forgot to extract the mask

This commit is contained in:
Zankaria 2024-07-14 20:46:50 +02:00
parent 60241a474c
commit dfef661910

View file

@ -87,6 +87,8 @@ class Bans {
if ($ret['post']) {
$ret['post'] = json_decode($ret['post'], true);
}
$ret['mask'] = self::range_to_string([$ret['ipstart'], $ret['ipend']]);
return $ret;
}
}
@ -148,6 +150,7 @@ class Bans {
if ($ban['post']) {
$ban['post'] = json_decode($ban['post'], true);
}
$ban['mask'] = self::range_to_string([$ban['ipstart'], $ban['ipend']]);
});
return $ban_list;
}