Merge branch 'MDL-27314_20' of git://github.com/timhunt/moodle into MOODLE_20_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2011-12-08 00:45:54 +01:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -634,11 +634,11 @@ class quiz_overview_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;
}
if ($groupstudents && !array_key_exists($attempt->userid, $groupstudents)) {
if ($groupstudents && !in_array($attempt->userid, $groupstudents)) {
// Additional check in groups mode.
continue;
}
+2 -2
View File
@@ -114,11 +114,11 @@ class quiz_responses_report extends quiz_default_report {
// Ensure the attempt exists, and belongs to this quiz. If not skip.
continue;
}
if ($attemptsmode != QUIZ_REPORT_ATTEMPTS_ALL && !array_key_exists($attempt->userid, $students)) {
if ($attemptsmode != QUIZ_REPORT_ATTEMPTS_ALL && !in_array($attempt->userid, $students)) {
// Ensure the attempt belongs to a student included in the report. If not skip.
continue;
}
if ($groupstudents && !array_key_exists($attempt->userid, $groupstudents)) {
if ($groupstudents && !in_array($attempt->userid, $groupstudents)) {
// Additional check in groups mode.
continue;
}