MDL-49364 quiz statistics: escape output in the response analysis
authorTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 3 Mar 2015 13:04:18 +0000 (13:04 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Tue, 3 Mar 2015 13:04:18 +0000 (13:04 +0000)
mod/quiz/report/statistics/statistics_question_table.php

index 2545ffe..bd89942 100644 (file)
@@ -177,6 +177,8 @@ class quiz_statistics_question_table extends flexible_table {
             } else {
                 return 0;
             }
+        } else if ($colname == 'part' || $colname == 'responseclass' || $colname == 'response') {
+            return s($response->$colname);
         } else {
             return null;
         }