From 3a267ca3a0fdf35b0c9d5d62b0e1d5166bb419bf Mon Sep 17 00:00:00 2001 From: danmarsden Date: Mon, 29 Oct 2007 00:22:44 +0000 Subject: [PATCH] missed one line. Fix for MDL-10085 and MDL-8118 Problem with number of Responses in choice wrong, and displayed users incorrect on results. merged from HEAD --- mod/choice/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/choice/lib.php b/mod/choice/lib.php index f6b6e258978..80d88665bb0 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -243,7 +243,7 @@ function choice_user_submit_response($formanswer, $choice, $userid, $courseid, $ if ($countanswers) { $countans = 0; foreach ($countanswers as $ca) { //only return enrolled users. - if (has_capability('mod/choice:choose', $context)) { + if (has_capability('mod/choice:choose', $context, $ca->userid, false)) { $countans = $countans+1; } }