mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
misc: Minor improvements (#1897)
This commit is contained in:
parent
36d399220e
commit
14086a0ed6
3 changed files with 10 additions and 19 deletions
|
@ -2154,10 +2154,7 @@ function getBanInfo(?int $userId = null): ?array
|
|||
global $datastore;
|
||||
|
||||
// Get bans info from datastore
|
||||
if (!$bans = $datastore->get('ban_list')) {
|
||||
$datastore->update('ban_list');
|
||||
$bans = $datastore->get('ban_list');
|
||||
}
|
||||
$bans = $datastore->get('ban_list');
|
||||
|
||||
if (!isset($userId)) {
|
||||
return $bans;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue