From: nicolasconnault Date: Tue, 23 Jun 2009 00:38:29 +0000 (+0000) Subject: MDL-19583 Showing outcomes in user report if enabled at site level. Merged from MOODL... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ec3f20419a1c71eee47169aec1ef4dc5ddb67977;p=moodle.git MDL-19583 Showing outcomes in user report if enabled at site level. Merged from MOODLE_19_STABLE --- diff --git a/grade/report/user/lib.php b/grade/report/user/lib.php index 19d1d02da8..e5d60a8b07 100644 --- a/grade/report/user/lib.php +++ b/grade/report/user/lib.php @@ -107,7 +107,7 @@ class grade_report_user extends grade_report { $this->switch = grade_get_setting($this->courseid, 'aggregationposition', $CFG->grade_aggregationposition); // Grab the grade_tree for this course - $this->gtree = new grade_tree($this->courseid, false, $this->switch, false, true); + $this->gtree = new grade_tree($this->courseid, false, $this->switch, false, !$CFG->enableoutcomes); // Determine the number of rows and indentation $this->maxdepth = 1;