From: hickert Date: Wed, 10 Oct 2007 11:41:40 +0000 (+0000) Subject: Udpated dhcp check in sertm generic. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=87679dda2c98d817ece6d153f1f27a2e8522caf0;p=gosa.git Udpated dhcp check in sertm generic. Used config->search instead of foreach(this->config.. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7488 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 9b067c0f7..609074146 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -65,10 +65,8 @@ class termDNS extends plugin /* Hide all dhcp specific code, if dhcp plugin is not present in config */ $dhcpEnabled = FALSE; - foreach($this->config->data['TABS']['SERVTABS'] as $tab){ - if(preg_match("/^servdhcp$/",$tab['CLASS'])){ - $this->dhcpEnabled = TRUE; - } + if($this->config->search("servdhcp","class",array("tabs"))){ + $this->dhcpEnabled = TRUE; } if($this->dhcpEnabled){ $this->dhcpParentNodes = $this->get_dhcp_parent_nodes();