MDL-30758 quiz_statistics report fails if all 1st attempts require grading

This commit is contained in:
Tim Hunt
2011-12-15 12:52:10 +00:00
parent cb8e878573
commit 67cb80dc09
+1 -1
View File
@@ -668,7 +668,7 @@ class quiz_statistics_report extends quiz_default_report {
$firstattempts = new stdClass();
$firstattempts->countrecs = 0;
$firstattempts->total = 0;
$firstattempts->average = '-';
$firstattempts->average = null;
}
$allattempts = new stdClass();