From: skodak Date: Thu, 5 Jun 2008 20:30:09 +0000 (+0000) Subject: MDL-15094 fixed stats regression X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=68d3c35b3b352bd641f0e5aec4581d52724a7e89;p=moodle.git MDL-15094 fixed stats regression --- diff --git a/admin/report/courseoverview/index.php b/admin/report/courseoverview/index.php index f4e122719e..15f69a0f01 100644 --- a/admin/report/courseoverview/index.php +++ b/admin/report/courseoverview/index.php @@ -26,11 +26,9 @@ $reportoptions = stats_get_report_options($course->id,STATS_MODE_RANKED); - $tableprefix = $CFG->prefix.'stats_'; - - $earliestday = $DB->get_field_sql('SELECT timeend FROM {daily} ORDER BY timeend'); - $earliestweek = $DB->get_field_sql('SELECT timeend FROM {weekly} ORDER BY timeend'); - $earliestmonth = $DB->get_field_sql('SELECT timeend FROM {monthly} ORDER BY timeend'); + $earliestday = $DB->get_field_sql('SELECT timeend FROM {stats_daily} ORDER BY timeend'); + $earliestweek = $DB->get_field_sql('SELECT timeend FROM {stats_weekly} ORDER BY timeend'); + $earliestmonth = $DB->get_field_sql('SELECT timeend FROM {stats_monthly} ORDER BY timeend'); if (empty($earliestday)) $earliestday = time(); if (empty($earliestweek)) $earliestweek = time();