mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Fixed highscores being broken when cache system is enabled.
Highscore cache data now stores vocation group store data, and flag value if enabled in config.php No extra queries are being made after the scores have been loaded from cache.
This commit is contained in:
@@ -349,7 +349,7 @@ function online_id_to_name($id) {
|
||||
// Parameter: players.vocation_id. Returns: Configured vocation name.
|
||||
function vocation_id_to_name($id) {
|
||||
$vocations = config('vocations');
|
||||
return ($vocations[$id] >= 0) ? $vocations[$id] : false;
|
||||
return ($vocations[$id] >= 0) ? $vocations[$id]['name'] : false;
|
||||
}
|
||||
|
||||
// Parameter: players.group_id. Returns: Configured group name.
|
||||
|
Reference in New Issue
Block a user