Merge branch 'MDL-41929' of git://github.com/timhunt/moodle
[moodle.git] / mod / quiz / report / statistics / report.php
index 866794a..9db615c 100644 (file)
@@ -468,7 +468,7 @@ class quiz_statistics_report extends quiz_default_report {
 
         // The statistics.
         foreach ($todisplay as $property => $format) {
-            if (!isset($quizstats->$property) || empty($format[$property])) {
+            if (!isset($quizstats->$property) || !$format) {
                 continue;
             }
             $value = $quizstats->$property;