--- loncom/interface/lonwhatsnew.pm 2005/04/11 13:14:00 1.7 +++ loncom/interface/lonwhatsnew.pm 2005/04/11 15:52:40 1.9 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.7 2005/04/11 13:14:00 raeburn Exp $ +# $Id: lonwhatsnew.pm,v 1.9 2005/04/11 15:52:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -395,10 +395,7 @@ sub getitems { %{$$bombed{$symb}} = (); %{$$ungraded{$symb}} = (); my $title = $resource->compTitle(); - my $ressymb = $symb; - if ($ressymb =~ m-___adm/\w+/\w+/\d+/bulletinboard$-) { - $ressymb = $resource->wrap_symb(); - } + my $ressymb = $resource->wrap_symb(); # Check for unread discussion postings if (defined($discussiontime{$ressymb})) { push(@discussions,$ressymb); @@ -419,12 +416,12 @@ sub getitems { if ($prevread <$contrib{$id.':timestamp'}) { $$unread{$ressymb}{$unreadcount} = $id.': '.$contrib{$id.':subject'}; $unreadcount ++; - push(@{$newdiscussions}, $ressymb); } } } } - } + if ($unreadcount) { push(@{$newdiscussions}, $ressymb); } + } # Check for ungraded problems if ($resource->is_problem()) {