Skip to content

Commit

Permalink
Merge branch 'MDL-51913_statistics_dup_1st_column' of git://github.co…
Browse files Browse the repository at this point in the history
…m/barrysspace/moodle
  • Loading branch information
David Monllao committed Nov 11, 2015
2 parents 23eff2c + 3e90d87 commit 169167c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report/stats/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@

$param->table = 'user_'.$param->table;

$sql = 'SELECT timeend,'.$param->fields.' FROM {stats_'.$param->table.'} WHERE '
$sql = 'SELECT id, timeend,'.$param->fields.' FROM {stats_'.$param->table.'} WHERE '
.(($course->id == SITEID) ? '' : ' courseid = '.$course->id.' AND ')
.' userid = '.$user->id.' AND timeend >= '.$param->timeafter .$param->extras
.' ORDER BY timeend DESC';
Expand Down

0 comments on commit 169167c

Please sign in to comment.