Fixes host editing
parent
681ba504aa
commit
f8bf21e3e5
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue