--- loncom/interface/statistics/lonstathelpers.pm 2005/04/07 06:56:24 1.46 +++ loncom/interface/statistics/lonstathelpers.pm 2005/04/07 07:34:52 1.47 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstathelpers.pm,v 1.46 2005/04/07 06:56:24 albertel Exp $ +# $Id: lonstathelpers.pm,v 1.47 2005/04/07 07:34:52 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -338,14 +338,8 @@ sub new_accumulator { sub get_selected_symbs { my ($inputfield) = @_; my $field = 'form.'.$inputfield; - my @Symbs; - if (exists($env{$field})) { - if (! ref($env{$field})) { - @Symbs = (&Apache::lonnet::unescape($env{$field})); - } else { - @Symbs = (map {&Apache::lonnet::unescape($_);} @{$env{$field}}); - } - } + my @Symbs = &Apache::loncommon::get_env_multiple($field); + @Symbs = (map {&Apache::lonnet::unescape($_);} @{$env{$field}}); return @Symbs; }