From f8bf21e3e56cb0e42e606750ac369ec2a10106ad Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Thu, 31 Oct 2024 11:51:16 +0200 Subject: [PATCH] Fixes host editing --- app/classes/host.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/classes/host.php b/app/classes/host.php index 7b51c6e..ed1f834 100644 --- a/app/classes/host.php +++ b/app/classes/host.php @@ -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'],