Commit 773582db authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-51402_28' of git://github.com/timhunt/moodle into MOODLE_28_STABLE

parents 964c02c3 bfd6727b
...@@ -1483,7 +1483,7 @@ function quiz_send_notification_messages($course, $quiz, $attempt, $context, $cm ...@@ -1483,7 +1483,7 @@ function quiz_send_notification_messages($course, $quiz, $attempt, $context, $cm
// Check for notifications required. // Check for notifications required.
$notifyfields = 'u.id, u.username, u.idnumber, u.email, u.emailstop, u.lang, u.timezone, u.mailformat, u.maildisplay, '; $notifyfields = 'u.id, u.username, u.idnumber, u.email, u.emailstop, u.lang, u.timezone, u.mailformat, u.maildisplay, ';
$notifyfields .= get_all_user_name_fields(true, 'u'); $notifyfields .= get_all_user_name_fields(true, 'u');
$groups = groups_get_all_groups($course->id, $submitter->id); $groups = groups_get_all_groups($course->id, $submitter->id, $cm->groupingid);
if (is_array($groups) && count($groups) > 0) { if (is_array($groups) && count($groups) > 0) {
$groups = array_keys($groups); $groups = array_keys($groups);
} else if (groups_get_activity_groupmode($cm, $course) != NOGROUPS) { } else if (groups_get_activity_groupmode($cm, $course) != NOGROUPS) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment