--- loncom/interface/lonpickcourse.pm 2005/01/27 19:20:55 1.24 +++ loncom/interface/lonpickcourse.pm 2005/02/17 08:29:43 1.26 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.24 2005/01/27 19:20:55 raeburn Exp $ +# $Id: lonpickcourse.pm,v 1.26 2005/02/17 08:29:43 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -42,8 +42,9 @@ sub handler { return OK if $r->header_only; # ------------------------------------------------------------ Print the screen + my $html=&Apache::lonxml::xmlbegin(); $r->print(< +$html The LearningOnline Network with CAPA @@ -226,11 +227,7 @@ ENDSCRIPT $descr = &Apache::lonnet::unescape($courses{$course}); } my $description = lc($descr); - if (exists($by_descrip{$description})) { - push @{$by_descrip{$description}}, ($course); - } else { - @{$by_descrip{$description}} = ($course); - } + push (@{$by_descrip{$description}}, $course); } foreach my $description (sort(keys(%by_descrip))) { foreach my $course (@{$by_descrip{$description}}) {