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.

This commit is contained in:
tjhunt
2008-08-12 06:07:13 +00:00
parent 1f64775a99
commit b0d5723c11
+1 -1
View File
@@ -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));
}