From 508fca2c7adb09a86d2cfe49b38cd41cb94de2f7 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Aug 2007 09:26:21 +0000 Subject: [PATCH] Only use range if checkbox is checked. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7154 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_dhcpSubnet.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_dhcpSubnet.inc b/plugins/admin/systems/class_dhcpSubnet.inc index d9751ee1d..ce1c4c164 100644 --- a/plugins/admin/systems/class_dhcpSubnet.inc +++ b/plugins/admin/systems/class_dhcpSubnet.inc @@ -183,7 +183,7 @@ class dhcpSubnet extends dhcpPlugin /* Move dn to the result */ $this->attrs['dhcpNetMask']= array(netmask_to_bits($this->dhcpNetMask)); - if ($this->dhcpRange != ""){ + if ($this->use_range && !empty($this->dhcpRange)){ $this->attrs['dhcpRange']= array($this->range_start." ".$this->range_stop); } else { $this->attrs['dhcpRange']= array(); -- 2.30.2