diff --git a/zones.php b/zones.php index 18d7d6a..c82a726 100644 --- a/zones.php +++ b/zones.php @@ -69,7 +69,7 @@ function _create_record($name, $records, $input, $zoneurl) { 'disabled' => false, 'type' => $input['type'], 'name' => $name, - 'ttl' => $input['ttl'] ? $input['ttl'] : $defaults['ttl'], + 'ttl' => isset($input['ttl']) ? $input['ttl'] : $defaults['ttl'], 'priority' => $input['priority'] ? $input['priority'] : $defaults['priority'], 'content' => $content));