forked from leftypol/leftypol
bans.php: fix forgot to extract the mask
This commit is contained in:
parent
60241a474c
commit
dfef661910
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue