--- loncom/interface/lonmsgdisplay.pm 2006/04/26 14:10:58 1.18 +++ loncom/interface/lonmsgdisplay.pm 2006/04/26 14:43:03 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines for messaging display # -# $Id: lonmsgdisplay.pm,v 1.18 2006/04/26 14:10:58 albertel Exp $ +# $Id: lonmsgdisplay.pm,v 1.19 2006/04/26 14:43:03 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1393,12 +1393,9 @@ sub blockcheck { # for students. return if (!%live_courses); - &Apache::lonnet::logthis("hmm"); - &Apache::lonnet::logthis(join(" ",%live_courses)); - &Apache::lonnet::logthis(join(" ",%staff_of)); - foreach my $course (keys(%live_courses)) { - my ($cdom,$cnum) = split(/_/,$course); + my $cdom = $env{'course.'.$course.'.domain'}; + my $cnum = $env{'course.'.$course.'.num'}; # if they are a staff member and are currently not playing student next if ( $staff_of{$course}