From: pichetp Date: Sat, 7 Jun 2008 12:28:32 +0000 (+0000) Subject: MDL-15102 $questionid is the id so array($questionid) line 337 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fbcd080be9bcb1c0c7f330670d364a3c3175f266;p=moodle.git MDL-15102 $questionid is the id so array($questionid) line 337 --- diff --git a/question/type/datasetdependent/abstractqtype.php b/question/type/datasetdependent/abstractqtype.php index 633b9cf965..799237345e 100644 --- a/question/type/datasetdependent/abstractqtype.php +++ b/question/type/datasetdependent/abstractqtype.php @@ -334,7 +334,7 @@ class question_dataset_dependent_questiontype extends default_questiontype { WHERE d.question = ? AND d.datasetdefinition = i.id "; - if ($records = $DB->get_records_sql($sql, array($questionid->id))) { + if ($records = $DB->get_records_sql($sql, array($questionid))) { foreach ($records as $r) { $datasetdefs["$r->type-$r->category-$r->name"] = $r; }