Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 21beddafa89ed6943483630d49689b4090dfa962 1 parent 1de9151
@tigusigalpa tigusigalpa authored timhunt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/quiz/report/attemptsreport.php
View
2  mod/quiz/report/attemptsreport.php
@@ -360,7 +360,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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.