Merged in pricetx/hlstatsx-community-edition (pull request #3)

Make player counts ingame and on the web page actually show the same figure
This commit is contained in:
Christopher Lynch 2015-07-08 13:48:26 -04:00
commit 438760408e
2 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,6 @@ sub getTotalPlayers
WHERE WHERE
game=? game=?
AND hideranking = 0 AND hideranking = 0
AND kills >= 1
"; ";
my $resultTotalPlayers = &::execCached("get_game_total_players", $query, &::quoteSQL($self->{game})); my $resultTotalPlayers = &::execCached("get_game_total_players", $query, &::quoteSQL($self->{game}));
my ($totalplayers) = $resultTotalPlayers->fetchrow_array; my ($totalplayers) = $resultTotalPlayers->fetchrow_array;

View File

@ -60,6 +60,7 @@ For support and installation notes visit http://www.hlxcommunity.com
hlstats_Players hlstats_Players
WHERE WHERE
game='$game' game='$game'
AND hideranking = 0
"; ";
$result = $db->query($query); $result = $db->query($query);
list($total_players) = $db->fetch_row($result); list($total_players) = $db->fetch_row($result);