From 933ac7497a82deaebc5992f2c8de67bf3c485176 Mon Sep 17 00:00:00 2001 From: Jamie Pratt Date: Tue, 24 Sep 2013 17:03:36 +0700 Subject: [PATCH] MDL-41888 allow for a blank string as format to mean not to show stat as in MDL-41929 which applies to older stable branches. --- mod/quiz/report/statistics/classes/calculated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/report/statistics/classes/calculated.php b/mod/quiz/report/statistics/classes/calculated.php index afb77399316..302b0074a23 100644 --- a/mod/quiz/report/statistics/classes/calculated.php +++ b/mod/quiz/report/statistics/classes/calculated.php @@ -128,7 +128,7 @@ class quiz_statistics_calculated { // The statistics. foreach ($todisplay as $property => $format) { - if (!isset($this->$property)) { + if (!isset($this->$property) || !$format) { continue; } $value = $this->$property;