From 480dda610cf3ff80aa7d05177f38db235800891d Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 6 Sep 2004 08:06:55 +0000 Subject: [PATCH] Fix for bug 1892: Hidden teachers are not shown anymore in the less detailed participants view. PS1: Can you believe I didn't know you could hide a teacher? :o PS2: I just _LOVE_ using lambda functions! It's soooooooo very cool it makes me think I may be programming in the wrong language! :P --- user/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/user/index.php b/user/index.php index 604bc0ba35..e286b55653 100644 --- a/user/index.php +++ b/user/index.php @@ -79,6 +79,10 @@ } echo ''; if($compactmode) { + // First of all, remove teachers with no authority + $teachers = array_filter($teachers, create_function('$t','return ($t->authority > 0);')); + + // And now show the remainder as usual $exceptions .= implode(',', array_keys($teachers)); print_user_table($teachers, $isteacher); } -- 2.39.5