Fix warning count in Ranking

Fix Warning: count(): Parameter must be an array or an object that implements Countable in GameEngine/Ranking.php on line 279
This commit is contained in:
Alex Stoica
2018-01-07 04:10:13 +02:00
committed by GitHub
parent 68c491509c
commit 8e2fb18c33
+2
View File
@@ -271,6 +271,8 @@
ORDER BY totalpop DESC, totalvillages DESC, userid DESC"; ORDER BY totalpop DESC, totalvillages DESC, userid DESC";
} }
$datas = array();
$result = (mysqli_query($GLOBALS['link'],$q)); $result = (mysqli_query($GLOBALS['link'],$q));
while($row = mysqli_fetch_assoc($result)) { while($row = mysqli_fetch_assoc($result)) {
$datas[] = $row; $datas[] = $row;