From: skodak Date: Fri, 6 Jun 2008 14:11:20 +0000 (+0000) Subject: MDL-15094 fixed stats X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=80e3b05ab36c94974fd063943cdc1436f347f725;p=moodle.git MDL-15094 fixed stats --- diff --git a/course/report/stats/report.php b/course/report/stats/report.php index 184d2c9463..1b7b3f1a62 100644 --- a/course/report/stats/report.php +++ b/course/report/stats/report.php @@ -83,7 +83,7 @@ } else { //TODO: lceanup this ugly mess $sql = 'SELECT '.((empty($param->fieldscomplete)) ? 'id,roleid,timeend,' : '').$param->fields - .' FROM '.$CFG->prefix.'stats_'.$param->table.' WHERE ' + .' FROM {stats_'.$param->table.'} WHERE ' .(($course->id == SITEID) ? '' : ' courseid = '.$course->id.' AND ') .((!empty($userid)) ? ' userid = '.$userid.' AND ' : '') .((!empty($roleid)) ? ' roleid = '.$roleid.' AND ' : '')