Fixes host editing

main
Yasen Pramatarov 2024-10-31 11:51:16 +02:00
parent 681ba504aa
commit f8bf21e3e5
1 changed files with 2 additions and 1 deletions

View File

@ -70,12 +70,13 @@ class Host {
$sql = 'UPDATE hosts SET
address = :address,
port = :port,
name = :name,
name = :name
WHERE
id = :id';
$query = $this->db->prepare($sql);
$query->execute([
':id' => $updatedHost['id'],
':address' => $updatedHost['address'],
':port' => $updatedHost['port'],
':name' => $updatedHost['name'],