Code

Fixed error when using empty ranges
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 09:25:49 +0000 (09:25 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Aug 2007 09:25:49 +0000 (09:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7022 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_dhcpSubnet.inc

index c43fc7a2a1f417b5ec44b9982dba853504f1721b..49723962d57eeb6ac3696e406a8684826cb7db85 100644 (file)
@@ -41,7 +41,7 @@ class dhcpSubnet extends dhcpPlugin
           $this->$attr= $attrs[$attr][0];
         }
       }
-      if (isset($attrs['dhcpRange'])){
+      if (isset($attrs['dhcpRange']) && count($attrs['dhcpRange'])){
         $this->use_range= TRUE;
         list($this->range_start, $this->range_stop)= preg_split('/\s+/', $this->dhcpRange);
       }