mirror of
https://github.com/moodle/moodle.git
synced 2025-03-03 15:29:08 +01:00
MDL-38363 qtype_calculated. Fix warnings.
This commit is contained in:
parent
2e4d9a0b80
commit
c52bcbf65f
@ -1636,6 +1636,9 @@ class qtype_calculated extends question_type {
|
||||
$datasetdefs["$r->type-$r->category-$r->name"] = $r;
|
||||
}
|
||||
if ($questionb = $DB->get_records_sql($sql1, array($r->question))) {
|
||||
if (!isset ($datasetdefs["$r->type-$r->category-$r->name"]->questions[$r->question])) {
|
||||
$datasetdefs["$r->type-$r->category-$r->name"]->questions[$r->question] = new stdClass();
|
||||
}
|
||||
$datasetdefs["$r->type-$r->category-$r->name"]->questions[
|
||||
$r->question]->name = $questionb[$r->question]->name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user