diff options
author | Ermal <eri@pfsense.org> | 2010-03-25 15:01:31 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-25 15:01:31 +0000 |
commit | c71f5fcda8e12e0aa28c579575cdb82e11be3662 (patch) | |
tree | 7707a8f59c7674aa02eff4a1cf20d31c85d873ac /etc/inc/services.inc | |
parent | bedd946f59790267dd34bda4ad33284ad5640b87 (diff) | |
download | pfsense-c71f5fcda8e12e0aa28c579575cdb82e11be3662.zip pfsense-c71f5fcda8e12e0aa28c579575cdb82e11be3662.tar.gz |
Catch up with php5
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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++; |