]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed typo from recent addition of all the DAYSECS etc ...
authormoodler <moodler>
Wed, 29 Sep 2004 09:12:55 +0000 (09:12 +0000)
committermoodler <moodler>
Wed, 29 Sep 2004 09:12:55 +0000 (09:12 +0000)
lib/datalib.php

index 4a1a9399d45f5cff8b5d9edd1e80f69389394570..60eeffbda8bd9aac16fad0425d5f27106046f304 100644 (file)
@@ -6,7 +6,7 @@
  * Other main libraries:
  * - weblib.php - functions that produce web output
  * - moodlelib.php - general-purpose Moodle functions
- * @author Martin Dougiamas
+ * @author Martin Dougiamas and many others
  * @version $Id$
  * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
  * @package moodlecore
@@ -2589,7 +2589,7 @@ function get_logs_usercourse($userid, $courseid, $coursestart) {
         $courseselect = '';
     }
 
-    return get_records_sql("SELECT floor((`time` - $coursestart)/".DAYSECS."86400) as day, count(*) as num
+    return get_records_sql("SELECT floor((`time` - $coursestart)/".DAYSECS.") as day, count(*) as num
                             FROM {$CFG->prefix}log
                            WHERE userid = '$userid'
                              AND `time` > '$coursestart' $courseselect