--- loncom/interface/loncommon.pm 2002/02/26 20:59:28 1.25 +++ loncom/interface/loncommon.pm 2002/03/21 20:24:21 1.27 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.25 2002/02/26 20:59:28 albertel Exp $ +# $Id: loncommon.pm,v 1.27 2002/03/21 20:24:21 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -359,7 +359,7 @@ sub get_student_answers { sub get_unprocessed_cgi { my ($query,$possible_names)= @_; - $Apache::lonxml::debug=1; + # $Apache::lonxml::debug=1; foreach (split(/&/,$query)) { my ($name, $value) = split(/=/,$_); $name = &Apache::lonnet::unescape($name); @@ -393,7 +393,7 @@ sub no_cache { sub add_to_env { my ($name,$value)=@_; if ($ENV{$name}) { - if (defined(@{ $ENV{$name} })) { + if (ref($ENV{$name})) { #already have multiple values push(@{ $ENV{$name} },$value); } else {