Skip to content

Commit

Permalink
MDL-38363 qtype_calculated. Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Mar 15, 2013
1 parent 2e4d9a0 commit c52bcbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion question/type/calculated/questiontype.php
Expand Up @@ -1633,9 +1633,12 @@ public function print_dataset_definitions_category($form) {
FROM {question} q
WHERE q.id = ?";
if (!isset ($datasetdefs["$r->type-$r->category-$r->name"])) {
$datasetdefs["$r->type-$r->category-$r->name"]= $r;
$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;
}
Expand Down

0 comments on commit c52bcbf

Please sign in to comment.