Skip to content

Commit

Permalink
OU bug 3463 - warnings when you start an attempt in 'each attempt bui…
Browse files Browse the repository at this point in the history
…lds on last' mode.
  • Loading branch information
tjhunt committed Jul 17, 2007
1 parent 83ae200 commit 4f2c86a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/questionlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,8 @@ function question_process_responses(&$question, &$state, $action, $cmoptions, &$
// Check for unchanged responses (exactly unchanged, not equivalent).
// We also have to catch questions that the student has not yet attempted
$sameresponses = $QTYPES[$question->qtype]->compare_responses($question, $action, $state);
if ($state->last_graded->event == QUESTION_EVENTOPEN && question_isgradingevent($action->event)) {
if (!empty($state->last_graded) && $state->last_graded->event == QUESTION_EVENTOPEN &&
question_isgradingevent($action->event)) {
$sameresponses = false;
}

Expand Down

0 comments on commit 4f2c86a

Please sign in to comment.