--- loncom/interface/lonmeta.pm 2007/01/15 23:39:16 1.198 +++ loncom/interface/lonmeta.pm 2007/01/16 07:26:45 1.199 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.198 2007/01/15 23:39:16 banghart Exp $ +# $Id: lonmeta.pm,v 1.199 2007/01/16 07:26:45 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -614,11 +614,10 @@ sub prettyinput { return (&select_course()); # return (''); } - my $course = $env{'request.course.id'}; if (($type eq 'keywords') || ($type eq 'subject') || ($type eq 'author')||($type eq 'notes') || ($type eq 'abstract')|| ($type eq 'title')|| ($type eq 'standards') - || (exists($env{'course.'.$env{'request.course.id'}.'.metadata.'.$type.'.added'}))) { + || (exists($env{$course_key.'.metadata.'.$type.'.added'}))) { if ($values) { if ($only_one) {