This commit is contained in:
2023-11-02 15:57:39 +02:00
parent a14232a899
commit def933dca4
51 changed files with 8866 additions and 12429 deletions
+7 -1
View File
@@ -13,6 +13,12 @@ class ClanInfo
public static function getNameById(int $id): string
{
Db::getValue('select name from clan where id = ?', [$id]);
$clan = self::getById($id);
return !empty($clan['name']) ? $clan['name'] : '';
}
public static function getById(int $id): array
{
return Db::getRow('select * from clan where id = ? and status = 1', [$id]) ?: [];
}
}