--- loncom/lond 2008/06/26 23:51:59 1.405 +++ loncom/lond 2008/06/30 03:59:23 1.406 @@ -2,7 +2,7 @@ # The LearningOnline Network # lond "LON Daemon" Server (port "LOND" 5663) # -# $Id: lond,v 1.405 2008/06/26 23:51:59 raeburn Exp $ +# $Id: lond,v 1.406 2008/06/30 03:59:23 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,7 +59,7 @@ my $DEBUG = 0; # Non zero to ena my $status=''; my $lastlog=''; -my $VERSION='$Revision: 1.405 $'; #' stupid emacs +my $VERSION='$Revision: 1.406 $'; #' stupid emacs my $remoteVERSION; my $currenthostid="default"; my $currentdomainid; @@ -3721,7 +3721,10 @@ sub dump_course_id_handler { } } if ($catfilter ne '') { - next if ($items->{'category'} ne $catfilter); + next if ($items->{'categories'} eq ''); + my @categories = split('&',$items->{'categories'}); + next if ((@categories == 0) || + (!grep(/^\Q$catfilter\E$/,@categories))); } if ($caller eq 'coursecatalog') { if ($items->{'hidefromcat'} eq 'yes') {