Fix bug autocomplete

Fix bug autocomplete
This commit is contained in:
novgorodschi catalin
2026-08-05 13:59:24 +03:00
parent 146b96907c
commit 72a2365d17
3 changed files with 55 additions and 5 deletions
+2 -1
View File
@@ -46,7 +46,8 @@ if ($x!== '' && $y!== '' && is_numeric($x) && is_numeric($y)) {
$getwref = (int)$database->getVilWref((int)$x, (int)$y);
$checkexist = $database->checkVilExist($getwref);
} elseif ($dname!== '') {
$getwref = (int)$database->getVillageByName($dname);
// Preferam satele jucatorului: numele NU sunt unice (vezi getVillageByName).
$getwref = (int) $database->getVillageByName($dname, true, (int) ($session->uid ?? 0));
$checkexist = $database->checkVilExist($getwref);
}