mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-15102 $questionid is the id so array($questionid) line 337
This commit is contained in:
parent
d2364673a9
commit
fbcd080be9
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ class question_dataset_dependent_questiontype extends default_questiontype {
|
||||||
WHERE d.question = ?
|
WHERE d.question = ?
|
||||||
AND d.datasetdefinition = i.id
|
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) {
|
foreach ($records as $r) {
|
||||||
$datasetdefs["$r->type-$r->category-$r->name"] = $r;
|
$datasetdefs["$r->type-$r->category-$r->name"] = $r;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue