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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user