From: jamiesensei Date: Tue, 22 Jul 2008 12:27:11 +0000 (+0000) Subject: MDL-15751 "Quiz statistics report : only list random questions once when there are... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d49e5bd87c8a95eef932def9e871fd4480b56866;p=moodle.git MDL-15751 "Quiz statistics report : only list random questions once when there are several consecutive random questions picking from the same category with the same options to recurse into sub directories" oops. Regression meant a row was added for every attempt at a random question --- diff --git a/mod/quiz/report/statistics/qstats.php b/mod/quiz/report/statistics/qstats.php index 07f5766aa2..8efbbb4f0a 100644 --- a/mod/quiz/report/statistics/qstats.php +++ b/mod/quiz/report/statistics/qstats.php @@ -132,7 +132,7 @@ class qstats{ if (!isset($this->randomselectors[$randomselectorstring])){ $this->randomselectors[$randomselectorstring] = array(); } - $this->randomselectors[$randomselectorstring][] = $itemid; + $this->randomselectors[$randomselectorstring][$itemid] = $itemid; } } }