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

This commit is contained in:
Tim Hunt
2011-12-15 12:52:21 +00:00
parent f2b2978c26
commit 83dd037f43
+1 -1
View File
@@ -667,7 +667,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();