From 97fdb73a81c7bc42f10cc7961e47580e1e6e060c Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 9 Feb 2006 08:28:27 +0000 Subject: [PATCH] Fixed DNS tab to work again. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2646 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNS.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_servDNS.inc b/plugins/admin/systems/class_servDNS.inc index 086dc9524..13c295600 100644 --- a/plugins/admin/systems/class_servDNS.inc +++ b/plugins/admin/systems/class_servDNS.inc @@ -425,20 +425,21 @@ class servdns extends plugin } } } - + /* Check if there are records removed, if there are some removed records, the append an array to ensure that these record types are deleted */ if((isset($zone['Records']))&&(is_array($zone['Records']))){ foreach($zone['Records'] as $type){ - if(isset($type['inittype'])){ + if((isset($type['inittype']))&&($type['inittype']!="")){ if($type['type'] != $type['inittype']){ $tmp[$type['inittype']] = array(); } } } } + /* generate forward entry */ $dn = "zoneName=".$zone['zoneName'].",".$this->dn; $tmp2[$dn] = $tmp; -- 2.30.2