]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15102 $questionid is the id so array($questionid) line 337
authorpichetp <pichetp>
Sat, 7 Jun 2008 12:28:32 +0000 (12:28 +0000)
committerpichetp <pichetp>
Sat, 7 Jun 2008 12:28:32 +0000 (12:28 +0000)
question/type/datasetdependent/abstractqtype.php

index 633b9cf965f4f98c50b542983e2a575290cd8133..799237345e05658e1c3b1babadb1077bbd037eb8 100644 (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;
                 }