From 4881858d6810f32944734240ad5e1934a79a8d82 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Fri, 26 Sep 2014 14:23:39 +0200 Subject: [PATCH] This should save us another Notice --- zones.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));