Permalink
Browse files

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

  • Loading branch information...
Igor Sazonov authored and timhunt committed Dec 1, 2011
1 parent 464d605 commit 4d85fc8f222348e902ecebf67a61bc9e1be26082
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/report/attemptsreport.php
@@ -353,7 +353,7 @@ protected function delete_selected_attempts($quiz, $cm, $attemptids, $allowed) {
// 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;
}

0 comments on commit 4d85fc8

Please sign in to comment.