advocaite/Travianx — comment on commit a708fc267d18f520092ee072596c0b601d5ea1f0
File:  line 0
By caponelpalo:

Hi, the problem myabe is in technology.php in the function: function getAllUnits($base), i comment line $movement = $database->getVillageMovement($base), then work.

function getAllUnits($base) {
global $database;
$ownunit = $database->getUnit($base);
$enforcementarray = $database->getEnforceVillage($base,0);
if(count($enforcementarray) > 0) {
foreach($enforcementarray as $enforce) {
for($i=1;$i<=50;$i++) {
$ownunit['u'.$i] += $enforce['u'.$i];
}
$ownunit['hero'] += $enforce['hero'];
}
}
/*$movement = $database->getVillageMovement($base);
if(!empty($movement)) {
for($i=1;$i<=50;$i++) {
$ownunit['u'.$i] += $movement['u'.$i];
}
$ownunit['hero'] += $movement['hero'];
}*/
return $ownunit;
}

SORRY my english.