Code

Only use range if checkbox is checked.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 09:26:21 +0000 (09:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Aug 2007 09:26:21 +0000 (09:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7154 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_dhcpSubnet.inc

index d9751ee1dfb593e215786539841ee1e6270bb3da..ce1c4c164a75aa61abe17e8e3dbd5279472d3a03 100644 (file)
@@ -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();