Merge pull request 'IP count bug fix' (#49) from fixIpCount2 into config

Reviewed-on: leftypol/leftypol#49

Fixes issue.
This commit is contained in:
nonmakina 2021-10-13 17:15:17 +00:00
commit 1136a3d201

View File

@ -148,7 +148,7 @@
return $stats;
}
private static function countUniqueIps($markAsCounted, $timespan, $_board) {
private static function countUniqueIps(&$markAsCounted, $timespan, $_board) {
$unique_query = query(
sprintf("SELECT DISTINCT ip FROM ``posts_%s`` WHERE time > %d",
$_board['uri'],