Skip to content

Commit

Permalink
Highscore frags fixed for TFS 0.3 (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrollog authored Aug 16, 2024
1 parent ab73d60 commit 760c3ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion system/pages/highscores.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
} else if ($skill == SKILL_FRAGS) // frags
{
if ($db->hasTable('player_killers')) {
$query->addSelect(['value' => PlayerKillers::where('player_killers.player_id', 'players.id')->selectRaw('COUNT(*)')]);
$query->addSelect(['value' => PlayerKillers::whereColumn('player_killers.player_id', 'players.id')->selectRaw('COUNT(*)')]);
} else {
$query->addSelect(['value' => PlayerDeath::unjustified()->whereColumn('player_deaths.killed_by', 'players.name')->selectRaw('COUNT(*)')]);
}
Expand Down
2 changes: 1 addition & 1 deletion system/src/Models/PlayerKillers.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class PlayerKillers extends Model {

protected $table = 'players_killers';
protected $table = 'player_killers';

public $timestamps = false;

Expand Down

0 comments on commit 760c3ab

Please sign in to comment.