Skip to content

Commit d3f8c22

Browse files
committed
Tracking: fix verification of last existing registry and timing based on logout_course_date instead of login_course_date to avoid loosing registry of time for user - refs BT#21501
1 parent 3299a6b commit d3f8c22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main/inc/lib/events.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,8 +2367,8 @@ public static function courseLogout($logoutInfo)
23672367
user_id = $userId AND
23682368
c_id = $courseId AND
23692369
session_id = $sessionId AND
2370-
login_course_date > '$time'
2371-
ORDER BY login_course_date DESC
2370+
logout_course_date > '$time'
2371+
ORDER BY logout_course_date DESC
23722372
LIMIT 1";
23732373
$result = Database::query($sql);
23742374
$insert = false;

0 commit comments

Comments
 (0)