Permalink
Browse files

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

…ading
  • Loading branch information...
1 parent cb8e878 commit 67cb80dc09f9e2ff97458e9f14ec268351a0b9ae @timhunt timhunt committed Dec 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/report/statistics/report.php
@@ -668,7 +668,7 @@ protected function compute_stats($quizid, $currentgroup, $nostudentsingroup,
$firstattempts = new stdClass();
$firstattempts->countrecs = 0;
$firstattempts->total = 0;
- $firstattempts->average = '-';
+ $firstattempts->average = null;
}
$allattempts = new stdClass();

0 comments on commit 67cb80d

Please sign in to comment.