Merge branch 'MDL-41929' of git://github.com/timhunt/moodle
authorMarina Glancy <marina@moodle.com>
Tue, 24 Sep 2013 11:31:46 +0000 (21:31 +1000)
committerMarina Glancy <marina@moodle.com>
Tue, 24 Sep 2013 11:31:46 +0000 (21:31 +1000)
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;