summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-09 04:06:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-09 04:06:39 +0000
commit0a2c6a5b3b63d728e67982d1c6cadbf9bb6add95 (patch)
treeaf7ab28a7d29398b03a9e5a71f22fa5d1a45874d /usr/local/www/services_dhcp.php
parent7131d92eed4a92c3a12482f7ceced36c029596fe (diff)
downloadpfsense-0a2c6a5b3b63d728e67982d1c6cadbf9bb6add95.zip
pfsense-0a2c6a5b3b63d728e67982d1c6cadbf9bb6add95.tar.gz
Fix braindead php {}
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index ab79da1..a652921 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -62,12 +62,13 @@ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
}
/* set the starting interface */
-if($config['interfaces']['lan'])
+if($config['interfaces']['lan']) {
if (!$if || !isset($iflist[$if]))
$if = "lan";
-else
+} else {
$if = "wan";
-
+}
+
$pconfig['range_from'] = $config['dhcpd'][$if]['range']['from'];
$pconfig['range_to'] = $config['dhcpd'][$if]['range']['to'];
$pconfig['deftime'] = $config['dhcpd'][$if]['defaultleasetime'];
OpenPOWER on IntegriCloud