mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Minor improvements (#1263)
This commit is contained in:
parent
7beb4afa72
commit
b16ee57faf
6 changed files with 12 additions and 7 deletions
|
@ -2175,9 +2175,9 @@ function user_birthday_icon($user_birthday, $user_id): string
|
|||
* Returns information about user ban
|
||||
*
|
||||
* @param int $userId
|
||||
* @return array
|
||||
* @return array|null
|
||||
*/
|
||||
function getUserBanInfo(int $userId): array
|
||||
function getUserBanInfo(int $userId): ?array
|
||||
{
|
||||
return DB()->fetch_row("SELECT * FROM " . BB_BANLIST . " WHERE ban_userid = $userId LIMIT 1");
|
||||
}
|
||||
|
@ -2185,9 +2185,9 @@ function getUserBanInfo(int $userId): array
|
|||
/**
|
||||
* Returns information about all bans
|
||||
*
|
||||
* @return array
|
||||
* @return array|null
|
||||
*/
|
||||
function getAllBans(): array
|
||||
function getAllBans(): ?array
|
||||
{
|
||||
return DB()->fetch_rowset("SELECT * FROM " . BB_BANLIST);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue