mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-01 08:07:14 +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;
|
$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");
|
||||||
|
|||||||
Reference in New Issue
Block a user