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'],