From fe3f3050bd0ca87b5593417e2623e92b8a9e12f7 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 24 Feb 2013 13:44:03 +0100 Subject: [PATCH] wlanap.cgi: set channel manually if no channels are reported. --- html/cgi-bin/wlanap.cgi | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index 83d65dbdb..5eb480007 100644 --- a/html/cgi-bin/wlanap.cgi +++ b/html/cgi-bin/wlanap.cgi @@ -2,7 +2,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2005-2012 IPFire Team # +# Copyright (C) 2005-2013 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -391,16 +391,31 @@ print <WPA1+2 +END +; + +# +# If channel's found use a select dropdown if not a text inputfield. +if ( scalar @channellist > 0 ){ + print <$Lang::tr{'wlanap channel'}:  " +} else { + print <$Lang::tr{'wlanap channel'}:  + + +END +; } print < $Lang::tr{'wlanap country'}: