From: hickert Date: Tue, 17 Jun 2008 09:46:18 +0000 (+0000) Subject: Hide dhcp if not installed. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1b6fa683440a14f91a69730a29fec20a6303507f;p=gosa.git Hide dhcp if not installed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11347 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index d5249a25d..b954e75ef 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -102,6 +102,11 @@ class termDNS extends plugin if($this->config->search("servdhcp","class",array("tabs"))){ $this->dhcpEnabled = TRUE; } + + if(!class_available("dhcpHost")){ + $this->dhcpEnabled = FALSE; + } + if($this->dhcpEnabled){ $this->dhcpParentNodes = $this->get_dhcp_parent_nodes(); $this->dhcpParentNode = $this->get_dhcp_parent_node();