From: hickert Date: Thu, 11 Oct 2007 11:16:53 +0000 (+0000) Subject: Only check for duplicated ip & mac if dns or dhcp is activated X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=07396c6e40919b4317d69d2d63fc39215e249100;p=gosa.git Only check for duplicated ip & mac if dns or dhcp is activated git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7511 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 5432e8ed2..944ebc2bf 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -465,12 +465,12 @@ class termDNS extends plugin } /* Check if mac and ip are already used */ - if(!empty($this->ipHostNumber) && + if(!empty($this->ipHostNumber) && $this->DNS_is_account && $this->ipHostNumber != $this->orig_ipHostNumber && in_array("ip:".$this->ipHostNumber,$this->used_ip_mac)){ $message[] =_("The specified IP address is already in use."); } - if(!empty($this->macAddress) && + if(!empty($this->macAddress) && $this->dhcp_is_Account && $this->macAddress != $this->orig_macAddress && in_array("mac:".$this->macAddress,$this->used_ip_mac)){ $message[] =_("The specified MAC address is already in use.");