summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-09-09 08:05:38 +0000
committerErmal Luçi <eri@pfsense.org>2008-09-09 08:05:38 +0000
commit92f7d37d7f8805bb2902b3c7ff3f38f35e4b723d (patch)
tree56829822138024bb7a8aa5f4aa211f4fe5a7359c /etc/inc
parent998552f8063b9bab60c6c561f148b97057b59577 (diff)
downloadpfsense-92f7d37d7f8805bb2902b3c7ff3f38f35e4b723d.zip
pfsense-92f7d37d7f8805bb2902b3c7ff3f38f35e4b723d.tar.gz
Insure this function returns always an array.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 620b413..ee41990 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1934,6 +1934,8 @@ function get_number_of_ppp_interfaces() {
function get_wireless_modes($interface)
{
/* return wireless modes and channels */
+ $wireless_modes = array();
+
if(is_interface_wireless($interface)) {
$wi = 1;
$ifconfig = "/sbin/ifconfig";
OpenPOWER on IntegriCloud