fixing typo in stats upgrade I just made

This commit is contained in:
mjollnir_
2006-09-23 09:02:37 +00:00
parent 0f259f63d9
commit 88d7e6218e
+1 -1
View File
@@ -1264,7 +1264,7 @@ function stats_upgrade_table_for_roles ($period) {
execute_sql("INSERT INTO {$CFG->prefix}stats_{$period}
(courseid, roleid, timeend, stattype, stat1, stat2)
SELECT courseid, 0, timeend, 'logins', logins, uniquelogins
FROM {$CFG->prefix}stats_{$period}_tmp WHERE course = ".SITEID);
FROM {$CFG->prefix}stats_{$period}_tmp WHERE courseid = ".SITEID);
// Drop the temporary table
$table = new XMLDBTable('stats_' . $period . '_tmp');