gradebook MDL-21218 made overview report respect display hidden items default correctly
authorAndrew Davis <andrew@affinitysoftware.net>
Fri, 16 Apr 2010 04:39:49 +0000 (04:39 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Fri, 16 Apr 2010 04:39:49 +0000 (04:39 +0000)
grade/report/overview/lib.php

index efad8ba..c68d176 100644 (file)
@@ -63,7 +63,7 @@ class grade_report_overview extends grade_report {
         parent::__construct($COURSE->id, $gpr, $context);
 
         $this->showrank = grade_get_setting($this->courseid, 'report_overview_showrank', !empty($CFG->grade_report_overview_showrank));
         parent::__construct($COURSE->id, $gpr, $context);
 
         $this->showrank = grade_get_setting($this->courseid, 'report_overview_showrank', !empty($CFG->grade_report_overview_showrank));
-        $this->showtotalsifcontainhidden = grade_get_setting($this->courseid, 'report_overview_showtotalsifcontainhidden', !empty($CFG->grade_report_overview_showtotalsifcontainhidden));
+        $this->showtotalsifcontainhidden = grade_get_setting($this->courseid, 'report_overview_showtotalsifcontainhidden', $CFG->grade_report_overview_showtotalsifcontainhidden);
 
         // get the user (for full name)
         $this->user = $DB->get_record('user', array('id' => $userid));
 
         // get the user (for full name)
         $this->user = $DB->get_record('user', array('id' => $userid));