MDL-27314 quiz attempts cannot be deleted in separate groups mode.

This commit is contained in:
Igor Sazonov
2011-12-01 16:23:27 +00:00
committed by Tim Hunt
parent 464d60522d
commit 4d85fc8f22
+1 -1
View File
@@ -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;
}