From 8883eeeec2eac61c3e6d36a169bf16345466f00a Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 9 Aug 2007 09:25:49 +0000 Subject: [PATCH] Fixed error when using empty ranges git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7022 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 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); } -- 2.30.2