--- loncom/interface/lonwhatsnew.pm 2005/04/11 15:33:46 1.8 +++ loncom/interface/lonwhatsnew.pm 2005/04/11 15:52:40 1.9 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.8 2005/04/11 15:33:46 albertel Exp $ +# $Id: lonwhatsnew.pm,v 1.9 2005/04/11 15:52:40 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -416,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()) {