]> git.mjollnir.org Git - moodle.git/commitdiff
fixing typo in stats upgrade I just made
authormjollnir_ <mjollnir_>
Sat, 23 Sep 2006 09:02:37 +0000 (09:02 +0000)
committermjollnir_ <mjollnir_>
Sat, 23 Sep 2006 09:02:37 +0000 (09:02 +0000)
lib/statslib.php

index 591caeff13d6a4afb3017b7dcbedc6cc975060f9..bc66ead9ca2d073b3dbdd1f3c177996e0b0f4508 100644 (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');