From e8e64fa33667cbb19b8ef1b7af0755c5ef6c237d Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 23 Oct 2006 05:22:16 +0000 Subject: [PATCH] Merged stats fix for MDL-7151 from stable --- course/user.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/course/user.php b/course/user.php index 218a780e40..5560171144 100644 --- a/course/user.php +++ b/course/user.php @@ -140,13 +140,17 @@ echo '
'; + // What the heck is this about? -- MD $stats = stats_fix_zeros($stats,$param->timeafter,$param->table,(!empty($param->line2)),(!empty($param->line3))); - + $table = new object(); $table->align = array('left','center','center','center'); $param->table = str_replace('user_','',$param->table); $table->head = array(get_string('periodending','moodle',$param->table),$param->line1,$param->line2,$param->line3); - foreach ($stats as $stat) { + foreach ($stats as $stat) { + if (!empty($stat->zerofixed)) { // Don't know why this is necessary, see stats_fix_zeros above - MD + continue; + } $a = array(userdate($stat->timeend,get_string('strftimedate'),$CFG->timezone),$stat->line1); $a[] = $stat->line2; $a[] = $stat->line3; -- 2.39.5