Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'MDL-38363_23' of git://github.com/timhunt/moodle into M…

…OODLE_23_STABLE
  • Loading branch information...
commit e250e9ae299c0a665309ca94b0216112c69363cb 2 parents a0b1284 + b433c4c
Eloy Lafuente (stronk7) authored March 19, 2013
5  question/type/calculated/questiontype.php
@@ -1633,9 +1633,12 @@ public function print_dataset_definitions_category($form) {
1633 1633
                                FROM {question} q
1634 1634
                               WHERE q.id = ?";
1635 1635
                     if (!isset ($datasetdefs["$r->type-$r->category-$r->name"])) {
1636  
-                        $datasetdefs["$r->type-$r->category-$r->name"]= $r;
  1636
+                        $datasetdefs["$r->type-$r->category-$r->name"] = $r;
1637 1637
                     }
1638 1638
                     if ($questionb = $DB->get_records_sql($sql1, array($r->question))) {
  1639
+                        if (!isset ($datasetdefs["$r->type-$r->category-$r->name"]->questions[$r->question])) {
  1640
+                            $datasetdefs["$r->type-$r->category-$r->name"]->questions[$r->question] = new stdClass();
  1641
+                        }
1639 1642
                         $datasetdefs["$r->type-$r->category-$r->name"]->questions[
1640 1643
                                 $r->question]->name = $questionb[$r->question]->name;
1641 1644
                     }

0 notes on commit e250e9a

Please sign in to comment.
Something went wrong with that request. Please try again.