Fixes for Bug #3876, Bug #3816

This commit is contained in:
danmarsden
2005-08-14 21:59:09 +00:00
parent 5fb64ae283
commit 3ddb684e57
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -41,15 +41,13 @@
}
if ($currentgroup) {
$users = get_group_users($currentgroup, "u.firstname ASC", '', 'u.id, u.picture, u.firstname, u.lastname') + get_admins();
$users = get_group_users($currentgroup, "u.firstname ASC", '', 'u.id, u.picture, u.firstname, u.lastname');
} else {
$users = get_course_users($course->id, "u.firstname ASC", '', 'u.id, u.picture, u.firstname, u.lastname') + get_admins();
}
if (!$users) {
print_heading(get_string("nousersyet"));
print_footer($course);
exit;
}
if ($allresponses = get_records("choice_answers", "choiceid", $choice->id)) {
+1 -3
View File
@@ -241,7 +241,7 @@
print_heading(get_string("responses", "choice"));
if ($currentgroup) {
$users = get_group_users($currentgroup, "u.firstname ASC", '', 'u.id, u.picture, u.firstname, u.lastname') + get_admins();
$users = get_group_users($currentgroup, "u.firstname ASC", '', 'u.id, u.picture, u.firstname, u.lastname');
} else {
$users = get_course_users($course->id, "u.firstname ASC", '', 'u.id, u.picture, u.firstname, u.lastname') + get_admins();
}
@@ -249,8 +249,6 @@
if (!$users) {
print_heading(get_string("nousersyet"));
print_footer($course);
exit;
}
if ($allresponses = get_records("choice_answers", "choiceid", $choice->id)) {