mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-29 06:37:15 +00:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user