From 1b6fa683440a14f91a69730a29fec20a6303507f Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 17 Jun 2008 09:46:18 +0000 Subject: [PATCH] Hide dhcp if not installed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11347 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/class_termDNS.inc | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.30.2