Fix bugs in location code

This commit is contained in:
2023-02-24 13:39:05 +01:00
parent 0696a16030
commit 02b3cfd23f
4 changed files with 26 additions and 25 deletions

View File

@@ -17,7 +17,7 @@ $sql = "SELECT location_id AS id, location_name AS name
FROM location
WHERE location_id=?";
$sth = $dbh->prepare($sql);
$sth->execute([$zone_id]);
$sth->execute([$location_id]);
$smarty->assign("location", $sth->fetch(PDO::FETCH_OBJ));
$smarty->display("locationsubnetedit.tpl");