Fixed ttl update bug in soa edit

This commit is contained in:
Lukas Metzger 2016-01-23 21:23:47 +01:00
parent 3f8156939e
commit fe77022836

View file

@ -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();