MDL-15102 $questionid is the id so array($questionid) line 337

This commit is contained in:
pichetp 2008-06-07 12:28:32 +00:00
parent d2364673a9
commit fbcd080be9

View File

@ -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;
}