--- loncom/interface/lonnavmaps.pm 2009/11/23 14:56:07 1.439
+++ loncom/interface/lonnavmaps.pm 2010/01/07 12:42:43 1.442
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.439 2009/11/23 14:56:07 wenzelju Exp $
+# $Id: lonnavmaps.pm,v 1.442 2010/01/07 12:42:43 wenzelju Exp $
#
# Copyright Michigan State University Board of Trustees
@@ -1037,7 +1037,7 @@ sub render_communication_status {
my $location=&Apache::loncommon::lonhttpdurl("/adm/lonMisc");
if ($resource->hasDiscussion()) {
$discussionHTML = $linkopen .
- '' .
+ '' .
$linkclose;
}
@@ -1047,7 +1047,7 @@ sub render_communication_status {
if ($msgid) {
$feedbackHTML .= ' '
- . '';
+ . '';
}
}
}
@@ -1061,7 +1061,7 @@ sub render_communication_status {
$errorcount++;
$errorHTML .= ' '
- . '';
+ . '';
}
}
}
@@ -1528,7 +1528,6 @@ END
( $res->NETWORK_FAILURE => 1,
$res->NOTHING_SET => 1,
$res->CORRECT => 1 );
- my @backgroundColors = ("LC_trEven", "LC_trOdd");
# Shared variables
$args->{'counter'} = 0; # counts the rows
@@ -1763,7 +1762,6 @@ END
# show them.
foreach my $part (@parts) {
$rownum ++;
- my $backgroundColor = $backgroundColors[$rownum % scalar(@backgroundColors)];
$result .= &Apache::loncommon::start_data_table_row();
@@ -3534,7 +3532,11 @@ sub navHash {
my $self = shift;
my $param = shift;
my $id = shift;
- return $self->{NAV_MAP}->navhash($param . ($id?$self->{ID}:""));
+ my $arg = $param . ($id?$self->{ID}:"");
+ if (defined($arg)) {
+ return $self->{NAV_MAP}->navhash($arg);
+ }
+ return;
}
=pod