summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-06-20 12:44:23 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-06-20 12:44:23 +0000
commit8ddbd34d4d92813d2273961a88ca1ff9d37cc031 (patch)
treeeede5ed660440751e754aa32cff25c93fa298d02 /etc
parentbe4524a0caaadec5d16b06f1fc737411c8aff191 (diff)
downloadpfsense-8ddbd34d4d92813d2273961a88ca1ff9d37cc031.zip
pfsense-8ddbd34d4d92813d2273961a88ca1ff9d37cc031.tar.gz
Make sure our interface list always has a description
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/util.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index e9adfc7..71fca01 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -301,6 +301,8 @@ function get_configured_interface_with_descr($only_opt = false) {
if ($only_opt == true && $if == "wan" || $if == "lan")
continue;
if ($if == "wan" || $if == "lan" || isset($ifdetail['enable']))
+ if($ifdetail['descr'] == "")
+ $ifdetail['descr'] = $if;
$iflist[$if] = $ifdetail['descr'];
}
OpenPOWER on IntegriCloud