Code

Fixed DNS tab to work again.
[gosa.git] / plugins / admin / systems / class_servDNS.inc
index 086dc952417c7e2199649122130cb4c9dc569f50..13c2956007036ade69e71bf3cef73de14f1d76d7 100644 (file)
@@ -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;