* fixed usage of field name 'rank' which became a keyword in MySQL 8
This commit is contained in:
Giacomo Pozzoni
2020-09-02 20:58:38 +02:00
committed by GitHub
parent aac9aab3c9
commit f34b4827ee
3 changed files with 4 additions and 4 deletions

View File

@@ -109,7 +109,7 @@ class GuildPage extends GenericPage
// statistic calculations here
// smuggle the guild ranks into the html
if ($ranks = DB::Aowow()->selectCol('SELECT rank AS ARRAY_KEY, name FROM ?_profiler_guild_rank WHERE guildId = ?d', $this->subjectGUID))
if ($ranks = DB::Aowow()->selectCol('SELECT `rank` AS ARRAY_KEY, name FROM ?_profiler_guild_rank WHERE guildId = ?d', $this->subjectGUID))
$this->extraHTML = '<script type="text/javascript">var guild_ranks = '.Util::toJSON($ranks).';</script>';