Skip to content
Snippets Groups Projects
Commit c521590a authored by Devin Zuczek's avatar Devin Zuczek Committed by Devin Zuczek
Browse files

Issue #2419449 by djdevin: Notice: Undefined property:...

Issue #2419449 by djdevin: Notice: Undefined property: MultichoiceResponse::$result_answer_id in MultichoiceResponse->
parent d53d88d8
No related branches found
No related tags found
No related merge requests found
......@@ -837,10 +837,10 @@ class MultichoiceResponse extends QuizQuestionResponse {
}
}
// We load the answer from the database
else {
else if (isset($this->result_answer_id)) {
$res = db_query('SELECT answer_id FROM {quiz_multichoice_user_answers} ua
LEFT OUTER JOIN {quiz_multichoice_user_answer_multi} uam ON(uam.user_answer_id = ua.id)
WHERE ua.result_answer_id = :raid', array(':raid' => $this->result_answer_id));
LEFT OUTER JOIN {quiz_multichoice_user_answer_multi} uam ON (uam.user_answer_id = ua.id)
WHERE ua.result_answer_id = :raid', array(':raid' => $this->result_answer_id));
while ($res_o = $res->fetch()) {
$this->user_answer_ids[] = $res_o->answer_id;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment