Skip to content

Commit

Permalink
Merged stats fix for MDL-7151 from stable
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Oct 23, 2006
1 parent a321d42 commit e8e64fa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions course/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,17 @@

echo '<center><img src="'.$CFG->wwwroot.'/course/report/stats/graph.php?mode='.STATS_MODE_DETAILED.'&course='.$course->id.'&time='.$time.'&report='.STATS_REPORT_USER_VIEW.'&userid='.$user->id.'" /></center>';

// 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;
Expand Down

0 comments on commit e8e64fa

Please sign in to comment.