From b0d5723c11c8b05e4db6b2050fec9ef4166ac4b3 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 12 Aug 2008 06:07:13 +0000 Subject: [PATCH] Found while testing MDL-12392 - it should not be considered an error if a quiz does not contain any essay questions. Packporting this return true from HEAD. --- mod/quiz/report/grading/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/report/grading/report.php b/mod/quiz/report/grading/report.php index b59b57e55bd..b4459bc880a 100644 --- a/mod/quiz/report/grading/report.php +++ b/mod/quiz/report/grading/report.php @@ -76,7 +76,7 @@ class quiz_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)); }