diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index 2f8f55fc0a353d96b7ed00faf139d8aa3de0e6e4..b4db0038b2e3f99823d75b2e638ef026a603e9d3 100644 (file)
/* Check if mac and ip are already used */
if(!empty($this->ipHostNumber) && $this->DNS_is_account &&
$this->ipHostNumber != $this->orig_ipHostNumber &&
- in_array("ip:".$this->ipHostNumber,$this->used_ip_mac)){
+ in_array_strict("ip:".$this->ipHostNumber,$this->used_ip_mac)){
$message[]= msgPool::duplicated(_("IP address"));
}
if(!empty($this->macAddress) && $this->dhcp_is_Account &&
$this->macAddress != $this->orig_macAddress &&
- in_array("mac:".$this->macAddress,$this->used_ip_mac)){
+ in_array_strict("mac:".$this->macAddress,$this->used_ip_mac)){
$message[]= msgPool::duplicated(_("MAC address"));
}
}
// Search the next free and valid ip.
- while(in_array(implode(".",$ip_data),$list) || $ip_data[3] <= 1){
+ while(in_array_strict(implode(".",$ip_data),$list) || $ip_data[3] <= 1){
$ip_data[3] ++ ;
if($ip_data[3] > 255){
$ip_data[3] = 1 ;