2
0
mirror of https://github.com/slawkens/myaac.git synced 2025-05-07 14:49:21 +02:00
This commit is contained in:
slawkens 2023-08-12 13:34:53 +02:00
parent a1ecdd228d
commit 2991696a60

@ -1374,7 +1374,7 @@ function getPlayerNameByAccountId($id)
$account = new OTS_Account();
$account->load($id);
if ($account->isLoaded()) {
$query = $db->query('SELECT `name` FROM `players` WHERE `account_id` = ' . $id . ' ORDER BY `lastlogin` DESC LIMIT 1;')->fetch();
$query = $db->query('SELECT `name` FROM `players` WHERE `account_id` = ' . $id . ' ORDER BY `lastlogin` DESC LIMIT 1;');
if (!$query || !$query->rowCount()) {
return '';