From c71f5fcda8e12e0aa28c579575cdb82e11be3662 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 25 Mar 2010 15:01:31 +0000 Subject: Catch up with php5 --- etc/inc/services.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 2cb6988..08f57ce 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -114,7 +114,7 @@ function services_dhcpd_configure() { $optcounter = 0; $custoptions = ""; foreach ($dhcpdcfg as $dhcpif => $dhcpifconf) { - if($dhcpifconf['numberoptions']['item']) { + if(is_array($dhcpifconf['numberoptions']) && is_array($dhcpifconf['numberoptions']['item'])) { foreach($dhcpifconf['numberoptions']['item'] as $item) { $custoptions .= "option custom-opt-$optcounter code {$item['number']} = text;\n"; $optcounter++; -- cgit v1.1