Permalink
Browse files

MDL-28690 metacourses - add some more alias prefixes to be 100% in th…

…e safe side
  • Loading branch information...
stronk7 committed Aug 23, 2011
1 parent 615702a commit e832010c51ab7238b04e4b0f93ee5179cb5c5968
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/cron.php
View
@@ -245,8 +245,8 @@
FROM {$CFG->prefix}user_lastaccess la
JOIN {$CFG->prefix}course c
ON c.id = la.courseid
- WHERE courseid != ".SITEID."
- AND timeaccess < $cuttime
+ WHERE la.courseid != ".SITEID."
+ AND la.timeaccess < $cuttime
AND c.metacourse = 0 ");
while ($assign = rs_fetch_next_record($rs)) {
if ($context = get_context_instance(CONTEXT_COURSE, $assign->courseid)) {

0 comments on commit e832010

Please sign in to comment.