From: pichetp Date: Mon, 15 Sep 2008 18:39:15 +0000 (+0000) Subject: DB error changing array('id', $state->id) to array('id'=> $state->id) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e74f18e0209fe2925f9988087e74090508135f7e;p=moodle.git DB error changing array('id', $state->id) to array('id'=> $state->id) --- diff --git a/question/type/datasetdependent/abstractqtype.php b/question/type/datasetdependent/abstractqtype.php index 0642b41ef6..e4117606f4 100644 --- a/question/type/datasetdependent/abstractqtype.php +++ b/question/type/datasetdependent/abstractqtype.php @@ -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;