Skip to content

Commit

Permalink
use user_lastaccess table to find inactive time instead of user_stude…
Browse files Browse the repository at this point in the history
…nts table
  • Loading branch information
toyomoyo committed Sep 13, 2006
1 parent 94fb6d1 commit cbf0446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit cbf0446

Please sign in to comment.