--- loncom/interface/loncommon.pm 2006/06/27 00:07:33 1.403 +++ loncom/interface/loncommon.pm 2006/06/27 17:50:37 1.404 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.403 2006/06/27 00:07:33 albertel Exp $ +# $Id: loncommon.pm,v 1.404 2006/06/27 17:50:37 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5175,8 +5175,8 @@ sub course_type { if (!defined($cid)) { $cid = $env{'request.course.id'}; } - if (defined($env{'course.'.$cid.'type'})) { - return $env{'course.'.$cid.'type'}; + if (defined($env{'course.'.$cid.'.type'})) { + return $env{'course.'.$cid.'.type'}; } else { return 'Course'; }