summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-25 15:01:31 +0000
committerErmal <eri@pfsense.org>2010-03-25 15:01:31 +0000
commitc71f5fcda8e12e0aa28c579575cdb82e11be3662 (patch)
tree7707a8f59c7674aa02eff4a1cf20d31c85d873ac /etc
parentbedd946f59790267dd34bda4ad33284ad5640b87 (diff)
downloadpfsense-c71f5fcda8e12e0aa28c579575cdb82e11be3662.zip
pfsense-c71f5fcda8e12e0aa28c579575cdb82e11be3662.tar.gz
Catch up with php5
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc2
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++;
OpenPOWER on IntegriCloud