Permalink
Browse files

Fixed an SQL query compatibility issue in quiz module

  • Loading branch information...
1 parent 67a10d9 commit 05348f162fa0ef6cdb39d187082283998149ad81 patrickslee committed Dec 6, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/questiontypes/calculated/questiontype.php
@@ -57,7 +57,7 @@ function save_question_options($question) {
global $CFG;
if (!$oldanswers = get_records_sql(
"SELECT a.*, c.tolerance, c.tolerancetype,
- c.correctanswerlength, c.id calcid
+ c.correctanswerlength, c.id AS calcid
FROM {$CFG->prefix}quiz_answers a,
{$CFG->prefix}quiz_calculated c
WHERE c.question = $question->id AND a.id = c.answer")) {

0 comments on commit 05348f1

Please sign in to comment.