From: toyomoyo Date: Wed, 13 Sep 2006 06:13:07 +0000 (+0000) Subject: use user_lastaccess table to find inactive time instead of user_students table X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cbf0446d8a574ffa955125e2b993ecd385b5eba9;p=moodle.git use user_lastaccess table to find inactive time instead of user_students table --- diff --git a/user/index.php b/user/index.php index 7be898034f..d78b88a906 100644 --- a/user/index.php +++ b/user/index.php @@ -209,9 +209,9 @@ if (!empty($isteacher)) { // get minimum lastaccess for this course and display a dropbox to filter by lastaccess going back this far. - $minlastaccess = get_field_sql('SELECT min(timeaccess) FROM '.$CFG->prefix.'user_students WHERE course = '.$course->id.' AND timeaccess != 0'); + $minlastaccess = get_field_sql('SELECT min(timeaccess) FROM '.$CFG->prefix.'user_lastaccess WHERE courseid = '.$course->id.' AND timeaccess != 0'); - $lastaccess0exists = record_exists('user_students','course',$course->id,'timeaccess',0); + $lastaccess0exists = record_exists('user_lastaccess','courseid',$course->id,'timeaccess',0); $now = usergetmidnight(time()); $timeaccess = array();