--- loncom/homework/grades.pm 2007/08/10 20:12:31 1.427 +++ loncom/homework/grades.pm 2007/08/11 13:32:23 1.428 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.427 2007/08/10 20:12:31 albertel Exp $ +# $Id: grades.pm,v 1.428 2007/08/11 13:32:23 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -7324,6 +7324,9 @@ ENDHEADER $result.='<br /><span class="LC_warning">'.&mt("Found [_1] entries for grading!",$correct_count).'</span>'; } } + if ($number<1) { + $errormsg.="Found no questions."; + } if ($errormsg) { $result.='<br /><span class="LC_error">'.&mt($errormsg).'</span>'; } else {