mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-29 06:37:15 +00:00
fix: Units class cannot be used as array in PHP 7
This commit is contained in:
@@ -1072,8 +1072,8 @@ class Automation {
|
|||||||
$cannotsend = 0;
|
$cannotsend = 0;
|
||||||
$movements = $database->getMovement("34",$data['to'],1);
|
$movements = $database->getMovement("34",$data['to'],1);
|
||||||
for($y=0;$y < count($movements);$y++){
|
for($y=0;$y < count($movements);$y++){
|
||||||
$returntime = $units[$y]['endtime']-time();
|
$returntime = $units->$y['endtime']-time();
|
||||||
if($units[$y]['sort_type'] == 4 && $units[$y]['from'] != 0 && $returntime <= 10){
|
if($units->$y['sort_type'] == 4 && $units->$y['from'] != 0 && $returntime <= 10){
|
||||||
$cannotsend = 1;
|
$cannotsend = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user