X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_servDNSeditZoneEntries.inc;h=3a13bde7dbfac17fc1f0b18238cb336979970ad1;hb=d59800c1cb10d2d61ac402e4e4e5253a19810a02;hp=fc4d86ff83faa52fd81813ac7d8fd6face368420;hpb=9661305ec872b58877cee3ac6b772134dcf7282c;p=gosa.git diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index fc4d86ff8..3a13bde7d 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -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; } } @@ -69,13 +72,13 @@ class servDNSeditZoneEntries extends plugin /* Add new host entry */ - if((preg_match("/^UserRecord_/",$name)) && ($once)){ + if((preg_match("/^UserRecord_?/",$name)) && ($once)){ $once = false; $entry = getDNSHostEntries($this->config,"",true); $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; @@ -350,7 +353,7 @@ class servDNSeditZoneEntries extends plugin /* Set title */ - $str = "