From: cajus Date: Thu, 9 Aug 2007 09:25:49 +0000 (+0000) Subject: Fixed error when using empty ranges X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8883eeeec2eac61c3e6d36a169bf16345466f00a;p=gosa.git Fixed error when using empty ranges git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7022 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_dhcpSubnet.inc b/plugins/admin/systems/class_dhcpSubnet.inc index c43fc7a2a..49723962d 100644 --- a/plugins/admin/systems/class_dhcpSubnet.inc +++ b/plugins/admin/systems/class_dhcpSubnet.inc @@ -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); }