From e4ecae482960106e67c0a8248cf76e276e9a3f0d Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 18 Jun 2010 08:34:14 -0500 Subject: [PATCH] Fixed big bug whereby users couldn't see their score in evaluations when special scoring was enabled but empty --- main/gradebook/lib/scoredisplay.class.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main/gradebook/lib/scoredisplay.class.php b/main/gradebook/lib/scoredisplay.class.php index d4dca8a46d..365fb100c9 100755 --- a/main/gradebook/lib/scoredisplay.class.php +++ b/main/gradebook/lib/scoredisplay.class.php @@ -84,9 +84,11 @@ class ScoreDisplay } $this->custom_enabled = $this->load_bool_setting('gradebook_score_display_custom', 0); if ($this->custom_enabled) { - $this->upperlimit_included = $this->load_bool_setting('gradebook_score_display_upperlimit', 0); - $this->custom_display = $this->get_custom_displays(); - $this->custom_display_conv = $this->convert_displays($this->custom_display); + $this->custom_display = $this->get_custom_displays(); + if (count($this->custom_display)>0) { + $this->upperlimit_included = $this->load_bool_setting('gradebook_score_display_upperlimit', 0); + $this->custom_display_conv = $this->convert_displays($this->custom_display); + } } } /**