--- loncom/homework/grades.pm 2010/08/30 09:47:32 1.636 +++ loncom/homework/grades.pm 2010/09/02 10:34:04 1.637 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.636 2010/08/30 09:47:32 wenzelju Exp $ +# $Id: grades.pm,v 1.637 2010/09/02 10:34:04 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -9182,9 +9182,9 @@ sub handler { &Apache::lonenc::check_decrypt(\$symb); $ssi_error = 0; - if ($symb eq '' || $command eq '') { + if (($symb eq '' || $command eq '') && ($env{'request.course.id'})) { # -# Not called from a resource +# Not called from a resource, but inside a course # &startpage($request,undef,[],1,1); &select_problem($request);