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.
This commit is contained in:
Jamie Pratt
2013-09-27 14:08:16 +07:00
parent 7de1e35b75
commit 933ac7497a
@@ -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;