From e489cc2f8def4e8fa753c61cf5aa7ed7a4336882 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 26 Nov 2007 05:58:21 +0000 Subject: [PATCH] MDL-12331, hidden teacher should not be displayed in choice results --- 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 c5dcfb8a36c..590d1517fc6 100644 --- a/mod/choice/lib.php +++ b/mod/choice/lib.php @@ -319,7 +319,7 @@ function choice_show_results($choice, $course, $cm, $forcepublish='') { $currentgroup = 0; } - $users = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.firstname ASC', '', '', $currentgroup, '', false); + $users = get_users_by_capability($context, 'mod/choice:choose', 'u.id, u.picture, u.firstname, u.lastname, u.idnumber', 'u.firstname ASC', '', '', $currentgroup, '', false, true); if (!$users) { print_heading(get_string("nousersyet"));