summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-06-06 07:48:33 +0700
committergnhb <gnoahb@gmail.com>2010-06-06 07:48:33 +0700
commit659828681076b48c696da5bb0ffb3717092f83c0 (patch)
tree0d776675274184d7210c21d5eb9ce65ef7831542 /etc/inc/pfsense-utils.inc
parentfda6084959b0cbd010e97330daeccf63b3533902 (diff)
downloadpfsense-659828681076b48c696da5bb0ffb3717092f83c0.zip
pfsense-659828681076b48c696da5bb0ffb3717092f83c0.tar.gz
Some $config variable referencing $if but $if is not defined.
Change $if to $ifdescr to restore normal functionality.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 1015023..614183b 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1190,7 +1190,7 @@ function get_interface_info($ifdescr) {
$ifinfo = array();
if (empty($config['interfaces'][$ifdescr]))
return;
- $ifinfo['hwif'] = $config['interfaces'][$if]['if'];
+ $ifinfo['hwif'] = $config['interfaces'][$ifdescr]['if'];
$ifinfo['if'] = get_real_interface($ifdescr);
$chkif = $ifinfo['if'];
@@ -1278,7 +1278,7 @@ function get_interface_info($ifdescr) {
else
$ifinfo['ppplink'] = "down" ;
- $dev = $config['interfaces'][$if]['if'];
+ $dev = $config['interfaces'][$ifdescr]['if'];
if (empty($dev))
break;
if (file_exists("/dev/{$dev}")) {
@@ -1351,8 +1351,8 @@ function get_interface_info($ifdescr) {
}
/* lookup the gateway */
- if (interface_has_gateway($if))
- $ifinfo['gateway'] = get_interface_gateway($if);
+ if (interface_has_gateway($ifdescr))
+ $ifinfo['gateway'] = get_interface_gateway($ifdescr);
}
$bridge = "";
OpenPOWER on IntegriCloud