Private GIT

Skip to content
Snippets Groups Projects
Commit 17d2c03b authored by Gary Allan's avatar Gary Allan
Browse files

Merge branch 'Tatsu-Kishi-master'

parents 088b37d1 8eb7860b
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ else {
}
else {
$record = new StdClass ();
$record->ttl = @$pdns->ttl;
$record->ttl = (isset($pdns->ttl) && $pdns->ttl > 0) ? $pdns->ttl : 3600;
$record->name = $post['domain_id'];
$record->content = $_POST['id'];
}
......@@ -98,7 +98,7 @@ $domain!==false ? : $Result->show("danger", _("Invalid ID"), true, true);
// default
if (!isset($record)) {
$record = new StdClass ();
$record->ttl = 3600;
$record->ttl = (isset($pdns->ttl) && $pdns->ttl > 0) ? $pdns->ttl : 3600;
$record->name = $domain->name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment