From: hickert Date: Mon, 29 May 2006 04:09:41 +0000 (+0000) Subject: Fixed dialog disabling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0ce31abeaa804324730f976265cff6c3258c3682;p=gosa.git Fixed dialog disabling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3531 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index d45128343..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; } }