From: tjhunt Date: Fri, 25 Jul 2008 14:11:22 +0000 (+0000) Subject: No manually graded questions found is not an error contidion, so return true, not... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=92718f4c44b8d8038e93970c8cf83b270a0c58af;p=moodle.git No manually graded questions found is not an error contidion, so return true, not false. --- diff --git a/mod/quiz/report/grading/report.php b/mod/quiz/report/grading/report.php index 2dbd5264a1..047fda4cad 100644 --- a/mod/quiz/report/grading/report.php +++ b/mod/quiz/report/grading/report.php @@ -76,7 +76,7 @@ class quiz_grading_report extends quiz_default_report { if (empty($gradeableqs)) { print_heading(get_string('noessayquestionsfound', 'quiz')); - return false; + return true; } else if (count($gradeableqs)==1){ $questionid = array_shift(array_keys($gradeableqs)); }