From: hickert Date: Tue, 28 Aug 2007 09:26:21 +0000 (+0000) Subject: Only use range if checkbox is checked. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=508fca2c7adb09a86d2cfe49b38cd41cb94de2f7;p=gosa.git 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 --- 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();