diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-09-09 08:05:38 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-09-09 08:05:38 +0000 |
commit | 92f7d37d7f8805bb2902b3c7ff3f38f35e4b723d (patch) | |
tree | 56829822138024bb7a8aa5f4aa211f4fe5a7359c /etc/inc | |
parent | 998552f8063b9bab60c6c561f148b97057b59577 (diff) | |
download | pfsense-92f7d37d7f8805bb2902b3c7ff3f38f35e4b723d.zip pfsense-92f7d37d7f8805bb2902b3c7ff3f38f35e4b723d.tar.gz |
Insure this function returns always an array.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
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"; |