--- loncom/interface/lonstatistics.pm 2005/02/25 23:23:47 1.117 +++ loncom/interface/lonstatistics.pm 2005/03/01 22:25:59 1.118 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.117 2005/02/25 23:23:47 matthew Exp $ +# $Id: lonstatistics.pm,v 1.118 2005/03/01 22:25:59 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -500,6 +500,12 @@ sub get_selected_maps { } else { @selected_maps = ('all'); } + foreach my $map (@selected_maps) { + if ($map eq 'all') { + @selected_maps = ('all'); + last; + } + } return @selected_maps; } @@ -599,21 +605,10 @@ sub map_select { } $form .= 'size="'.$numvisible.'" >'."\n"; # - # Deal with 'all' - foreach (@selected_maps) { - if ($_ eq 'all') { - @selected_maps = ('all'); - last; - } - } - # # Put in option for 'all' $form .= '