From a04d186c22912915f0a7873dfe677ef3b5a23c79 Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 10 Jun 2024 18:53:17 +0200 Subject: [PATCH] Fix highscores frags for TFS 1.x and canary --- system/pages/highscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/highscores.php b/system/pages/highscores.php index 1229dca33b..0e5662e171 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -182,7 +182,7 @@ if ($db->hasTable('player_killers')) { $query->addSelect(['value' => PlayerKillers::where('player_killers.player_id', 'players.id')->selectRaw('COUNT(*)')]); } else { - $query->addSelect(['value' => PlayerDeath::unjustified()->where('player_deaths.killed_by', 'players.name')->selectRaw('COUNT(*)')]); + $query->addSelect(['value' => PlayerDeath::unjustified()->whereColumn('player_deaths.killed_by', 'players.name')->selectRaw('COUNT(*)')]); } } else if ($skill == SKILL_BALANCE) // balance {