--- loncom/interface/lonquickgrades.pm 2002/12/02 10:14:57 1.8 +++ loncom/interface/lonquickgrades.pm 2003/03/10 06:42:32 1.11 @@ -77,12 +77,6 @@ sub real_handler { # Keep this hash in sync with %statusIconMap in lonnavmaps; they # should match color/icon my $res = $navmap->firstResource(); # temp resource to access constants - - if (!defined($navmap)) { - my $requrl = $r->uri; - $ENV{'user.error.msg'} = "$requrl:bre:0:0:Course not initialized"; - return HTTP_NOT_ACCEPTABLE; - } # Header $r->print(&Apache::loncommon::bodytag('Quick Score Display','', @@ -159,9 +153,9 @@ HEADER } $iterator = $navmap->getIterator(undef, undef, undef, 1); - my $depth = 1; + $depth = 1; $iterator->next(); # ignore first BEGIN_MAP - my $curRes = $iterator->next(); + $curRes = $iterator->next(); my @start = (255, 255, 192); my @end = (0, 192, 0); @@ -173,7 +167,7 @@ HEADER # Second pass: Print the maps. $r->print('
Sequence | '); - $r->print('Correct / Total |
Done / Total | |
Total Parts Correct: $totalRight "); + $r->print(" | |
Total Parts Done: $totalRight "); $r->print("Max Possible To Date $maxHelpLink: $totalPossible "); $r->print("Total Parts In Course: $totalParts |