--- loncom/lonnet/perl/lonnet.pm 2002/09/24 18:25:45 1.286 +++ loncom/lonnet/perl/lonnet.pm 2002/10/01 07:09:05 1.287 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.286 2002/09/24 18:25:45 matthew Exp $ +# $Id: lonnet.pm,v 1.287 2002/10/01 07:09:05 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2588,7 +2588,7 @@ sub courseresdata { } } foreach my $item (@which) { - if ($courseresdatacache{$hashid}->{$item}) { + if (defined($courseresdatacache{$hashid}->{$item})) { return $courseresdatacache{$hashid}->{$item}; } } @@ -2739,7 +2739,7 @@ sub EXT { ($seclevelr,$seclevelm,$seclevel, $courselevelr,$courselevelm, $courselevel)); - if ($coursereply) { return $coursereply; } + if (defined($coursereply)) { return $coursereply; } # ------------------------------------------------------ third, check map parms my %parmhash=();