mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-26 15:34:09 +01:00
Fixed bug where every record got changed by a record update
This commit is contained in:
parent
f48b0e8a11
commit
76e9f7327a
1 changed files with 2 additions and 1 deletions
|
@ -297,7 +297,8 @@ class Records
|
|||
$priority = $priority === null ? intval($record['prio']) : $priority;
|
||||
$ttl = $ttl === null ? intval($record['ttl']) : $ttl;
|
||||
|
||||
$query = $this->db->prepare('UPDATE records SET name=:name,type=:type,content=:content,prio=:priority,ttl=:ttl');
|
||||
$query = $this->db->prepare('UPDATE records SET name=:name,type=:type,content=:content,prio=:priority,ttl=:ttl WHERE id=:recordId');
|
||||
$query->bindValue('recordId', $recordId);
|
||||
$query->bindValue(':name', $name);
|
||||
$query->bindValue(':type', $type);
|
||||
$query->bindValue(':content', $content);
|
||||
|
|
Loading…
Add table
Reference in a new issue