Skip to content

Commit

Permalink
Use notify instead of error()
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Oct 23, 2005
1 parent 5e41163 commit 0232fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/questiontypes/random/questiontype.php
Expand Up @@ -118,12 +118,12 @@ function restore_session_and_responses(&$question, &$state) {
}
// this must be an old-style state which stores only the id for the wrapped question
if (!$wrappedquestion = get_record('quiz_questions', 'id', $state->responses[''])) {
error("Can not find wrapped question {$state->responses['']}");
notify("Can not find wrapped question {$state->responses['']}");
}
// In the old model the actual response was stored in a separate entry in
// the state table and fortunately there was only a single state per question
if (!$state->responses[''] = get_field('quiz_states', 'answer', 'attempt', $state->attempt, 'question', $wrappedquestion->id)) {
error("Wrapped state missing");
notify("Wrapped state missing");
}
} else {
if (!$wrappedquestion = get_record('quiz_questions', 'id', $answerregs[1])) {
Expand Down

0 comments on commit 0232fdd

Please sign in to comment.