diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index b1840a37656..1f9826012c4 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -220,9 +220,6 @@ function quiz_delete_instance($id) { if (! delete_records("quiz_newest_states", "attemptid", "$attempt->uniqueid")) { $result = false; } - if (! delete_records("quiz_newest_states", "attemptid", "$attempt->id")) { - $result = false; - } } }