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 $sql = 'UPDATE hosts SET
address = :address, address = :address,
port = :port, port = :port,
name = :name, name = :name
WHERE WHERE
id = :id'; id = :id';
$query = $this->db->prepare($sql); $query = $this->db->prepare($sql);
$query->execute([ $query->execute([
':id' => $updatedHost['id'],
':address' => $updatedHost['address'], ':address' => $updatedHost['address'],
':port' => $updatedHost['port'], ':port' => $updatedHost['port'],
':name' => $updatedHost['name'], ':name' => $updatedHost['name'],