Code

Replace stream_get_contents() which is not php4 compatible
[gosa.git] / plugins / admin / systems / class_servDNSeditZoneEntries.inc
index 8131f143f79c1dc64233b0a0d3087870890bb66f..3a13bde7dbfac17fc1f0b18238cb336979970ad1 100644 (file)
@@ -46,8 +46,11 @@ class servDNSeditZoneEntries extends plugin
       $this->Devices[$attrs['relativeDomainName'][0]]['OrigCn'] = $attrs['relativeDomainName'][0];
     }
 
-    if(!count($this->Devices)){
-      $this->disableDialog = true;
+    $ldap->cat($this->dn,array("objectClass"));
+
+    $this->disableDialog = true;
+    if(count($this->Devices)|| $ldap->count()){
+      $this->disableDialog = false;
     }
   }
 
@@ -75,7 +78,7 @@ class servDNSeditZoneEntries extends plugin
         $entry['exists']    = true;
         $entry['zoneName']  = $this->zoneName; 
         $entry['RECORDS'][] = array("type" => "aRecord" , "value"=>"");
-        $this->Devices[_("New Entry")] = $entry;
+        $this->Devices[_("New entry")] = $entry;
       }
 
       if(count($tmp2) != 2) continue;