mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-16 03:02:22 +01:00
Fixed ttl update bug in soa edit
This commit is contained in:
parent
3f8156939e
commit
fe77022836
1 changed files with 2 additions and 2 deletions
|
@ -195,8 +195,8 @@ if(isset($input->action) && $input->action == "saveSoa") {
|
|||
$newsoa .= $input->expire . " ";
|
||||
$newsoa .= $input->ttl;
|
||||
|
||||
$stmt = $db->prepare("UPDATE records SET content=? WHERE type='SOA' AND domain_id=?");
|
||||
$stmt->bind_param("si", $newsoa, $domainId);
|
||||
$stmt = $db->prepare("UPDATE records SET content=?,ttl=? WHERE type='SOA' AND domain_id=?");
|
||||
$stmt->bind_param("sii", $newsoa, $input->ttl, $domainId);
|
||||
$stmt->execute();
|
||||
|
||||
$db->commit();
|
||||
|
|
Loading…
Reference in a new issue