"WHERE a.question = $question->id " .
"AND a.id = c.answer ".
"ORDER BY a.id ASC")) {
- notify('Error: Missing question answer!');
+ notify('Error: Missing question answer for calculated question ' . $question->id . '!');
return false;
}
"WHERE a.question = $question->id " .
" AND a.id = n.answer " .
"ORDER BY a.id ASC")) {
- notify('Error: Missing question answer!');
+ notify('Error: Missing question answer for numerical question ' . $question->id . '!');
return false;
}
$this->get_numerical_units($question);
if (!$question->options->answers = get_records('question_answers', 'question',
$question->id, 'id ASC')) {
- notify('Error: Missing question answers!');
+ notify('Error: Missing question answers for shortanswer question ' . $question->id . '!');
return false;
}
return true;
}
// Load the answers
if (!$question->options->answers = get_records('question_answers', 'question', $question->id, 'id ASC')) {
- notify('Error: Missing question answers!');
+ notify('Error: Missing question answers for truefalse question ' . $question->id . '!');
return false;
}