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