From: Arne Fitzenreiter Date: Sun, 24 Feb 2013 12:44:03 +0000 (+0100) Subject: wlanap.cgi: set channel manually if no channels are reported. X-Git-Tag: v2.13-core67~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe3f3050bd0ca87b5593417e2623e92b8a9e12f7;p=people%2Fms%2Fipfire-2.x.git wlanap.cgi: set channel manually if no channels are reported. --- diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index 83d65dbdb4..5eb480007b 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'}: