--- loncom/interface/lonnavmaps.pm 2004/08/13 22:08:16 1.276 +++ loncom/interface/lonnavmaps.pm 2004/08/20 20:14:27 1.277 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Navigate Maps Handler # -# $Id: lonnavmaps.pm,v 1.276 2004/08/13 22:08:16 albertel Exp $ +# $Id: lonnavmaps.pm,v 1.277 2004/08/20 20:14:27 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2236,9 +2236,14 @@ sub getById { sub getBySymb { my $self = shift; my $symb = shift; + my ($mapUrl, $id, $filename) = &Apache::lonnet::decode_symb($symb); my $map = $self->getResourceByUrl($mapUrl); - return $self->getById($map->map_pc() . '.' . $id); + my $returnvalue = undef; + if (ref($map)) { + $returnvalue = $self->getById($map->map_pc() .'.'.$id); + } + return $returnvalue; } sub getByMapPc { @@ -2432,6 +2437,7 @@ in the filter function. =cut + sub getResourceByUrl { my $self = shift; my $resUrl = shift;