Merge branch 'MDL-27314_21' of git://github.com/timhunt/moodle into MOODLE_21_STABLE
This commit is contained in:
@@ -353,7 +353,7 @@ abstract class quiz_attempt_report extends quiz_default_report {
|
||||
// Ensure the attempt exists, and belongs to this quiz. If not skip.
|
||||
continue;
|
||||
}
|
||||
if ($allowed && !array_key_exists($attempt->userid, $allowed)) {
|
||||
if ($allowed && !in_array($attempt->userid, $allowed)) {
|
||||
// Ensure the attempt belongs to a student included in the report. If not skip.
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user