Skip to content

Commit

Permalink
Fix highscores frags for TFS 1.x and canary
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Jun 10, 2024
1 parent 42f99c3 commit a04d186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/pages/highscores.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit a04d186

Please sign in to comment.