mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: for multihunters & admins, this select can return 0 rows
This commit is contained in:
+11
-9
@@ -270,15 +270,17 @@
|
||||
$datas[] = $row;
|
||||
}
|
||||
|
||||
foreach($datas as $result) {
|
||||
$value['userid'] = $result['userid'];
|
||||
$value['username'] = $result['username'];
|
||||
$value['oldrank'] = $result['oldrank'];
|
||||
$value['alliance'] = $result['alliance'];
|
||||
$value['aname'] = $result['allitag'];
|
||||
$value['totalpop'] = $result['totalpop'];
|
||||
$value['totalvillage'] = $result['totalvillages'];
|
||||
array_push($holder, $value);
|
||||
if (count($datas)) {
|
||||
foreach($datas as $result) {
|
||||
$value['userid'] = $result['userid'];
|
||||
$value['username'] = $result['username'];
|
||||
$value['oldrank'] = $result['oldrank'];
|
||||
$value['alliance'] = $result['alliance'];
|
||||
$value['aname'] = $result['allitag'];
|
||||
$value['totalpop'] = $result['totalpop'];
|
||||
$value['totalvillage'] = $result['totalvillages'];
|
||||
array_push($holder, $value);
|
||||
}
|
||||
}
|
||||
|
||||
$newholder = array("pad");
|
||||
|
||||
Reference in New Issue
Block a user