From 07396c6e40919b4317d69d2d63fc39215e249100 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Oct 2007 11:16:53 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_termDNS.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); -- 2.30.2