summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/services_dhcp.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 652ccd3..41364f1 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -36,11 +36,13 @@ if ($_POST['if'])
$if = $_POST['if'];
/* if OLSRD is enabled, allow WAN to house DHCP. */
-foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
- if($olsr['enable']) {
- $iflist = array("lan" => "LAN", "wan" => "WAN");
- break;
- }
+if($config['installedpackages']['olsrd']) {
+ foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
+ if($olsr['enable']) {
+ $iflist = array("lan" => "LAN", "wan" => "WAN");
+ break;
+ }
+ }
}
if(!$iflist)
OpenPOWER on IntegriCloud