fix: for multihunters & admins, this select can return 0 rows

This commit is contained in:
Martin Ambrus
2017-08-28 23:56:35 +02:00
parent cbb9d40fd0
commit 814a904343
+11 -9
View File
@@ -270,15 +270,17 @@
$datas[] = $row; $datas[] = $row;
} }
foreach($datas as $result) { if (count($datas)) {
$value['userid'] = $result['userid']; foreach($datas as $result) {
$value['username'] = $result['username']; $value['userid'] = $result['userid'];
$value['oldrank'] = $result['oldrank']; $value['username'] = $result['username'];
$value['alliance'] = $result['alliance']; $value['oldrank'] = $result['oldrank'];
$value['aname'] = $result['allitag']; $value['alliance'] = $result['alliance'];
$value['totalpop'] = $result['totalpop']; $value['aname'] = $result['allitag'];
$value['totalvillage'] = $result['totalvillages']; $value['totalpop'] = $result['totalpop'];
array_push($holder, $value); $value['totalvillage'] = $result['totalvillages'];
array_push($holder, $value);
}
} }
$newholder = array("pad"); $newholder = array("pad");