Some important fixes

Some important fixes
This commit is contained in:
novgorodschi catalin
2026-08-10 09:08:09 +03:00
parent 2095a59b7e
commit da58de16b4
14 changed files with 105 additions and 19 deletions
@@ -340,7 +340,11 @@ trait DatabaseMovementQueries {
list($id) = $this->escape_input($id);
$vinfo = $this->getVillage($id);
$vtribe = $this->getUserField($vinfo['owner'], "tribe", 0);
// Satul poate lipsi (sters intre timp). Fara proprietar nu avem ce trib
// sa citim, deci nu are rost sa continuam cu null.
$vOwner = is_array($vinfo) && isset($vinfo['owner']) ? (int) $vinfo['owner'] : 0;
$vtribe = $vOwner > 0 ? $this->getUserField($vOwner, "tribe", 0) : 0;
$movingunits = [];
$outgoingarray = $this->getMovement(3, $id, 0);