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

This commit is contained in:
Igor Sazonov
2011-12-08 00:46:49 +01:00
committed by Eloy Lafuente (stronk7)
parent 2af51a1dc3
commit 8f64668af2
+1 -1
View File
@@ -360,7 +360,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;
}