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

pull/5610/head
NicoDucou 1 year ago
parent 3299a6b115
commit d3f8c22fe6
  1. 4
      main/inc/lib/events.lib.php

@ -2367,8 +2367,8 @@ class Event
user_id = $userId AND
c_id = $courseId AND
session_id = $sessionId AND
login_course_date > '$time'
ORDER BY login_course_date DESC
logout_course_date > '$time'
ORDER BY logout_course_date DESC
LIMIT 1";
$result = Database::query($sql);
$insert = false;

Loading…
Cancel
Save