]> git.mjollnir.org Git - moodle.git/commitdiff
DB error changing array('id', $state->id) to array('id'=> $state->id)
authorpichetp <pichetp>
Mon, 15 Sep 2008 18:39:15 +0000 (18:39 +0000)
committerpichetp <pichetp>
Mon, 15 Sep 2008 18:39:15 +0000 (18:39 +0000)
question/type/datasetdependent/abstractqtype.php

index 0642b41ef6e12aa8ef2390eb2f12da76d8c012d3..e4117606f4a6cae032f01b1676b01af2fc5086a9 100644 (file)
@@ -71,9 +71,8 @@ class question_dataset_dependent_questiontype extends default_questiontype {
         global $DB;
         $responses = 'dataset'.$state->options->datasetitem.'-'.
          $state->responses[''];
-
         // Set the legacy answer field
-        if (!$DB->set_field('question_states', 'answer', $responses, array('id', $state->id))) {
+        if (!$DB->set_field('question_states', 'answer', $responses, array('id'=> $state->id))) {
             return false;
         }
         return true;