]> git.ipfire.org Git - people/dweismueller/ipfire-2.x.git/blobdiff - html/cgi-bin/wlanap.cgi
wlanap.cgi: remove trailing 0 from channellist.
[people/dweismueller/ipfire-2.x.git] / html / cgi-bin / wlanap.cgi
index c78a3c4ff697b4cf91e82f1bab1a42d64f117443..ec9022ddfad8305013f9efd1200818726c33bbf2 100644 (file)
@@ -272,7 +272,7 @@ my @temp;
 foreach (@channellist_cmd){
 $_ =~ /(.*) \[(\d+)(.*)\]/;
 $channel = $2;chomp $channel;
-if ( $channel =~ /\d+/ ){push(@temp,$channel);}
+if ( $channel =~ /\d+/ ){push(@temp,$channel + 0);}
 }
 @channellist = @temp;
 } else {
@@ -283,7 +283,7 @@ my @temp;
 foreach (@channellist_cmd){
 $_ =~ /(.*)Channel (\d+)(.*):/;
 $channel = $2;chomp $channel;
-if ( $channel =~ /\d+/ ){push(@temp,$channel);}
+if ( $channel =~ /\d+/ ){push(@temp,$channel + 0);}
 }
 @channellist = @temp;
 }