From d49e5bd87c8a95eef932def9e871fd4480b56866 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Tue, 22 Jul 2008 12:27:11 +0000 Subject: [PATCH] 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 --- mod/quiz/report/statistics/qstats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } } -- 2.39.5