-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
2.2.2
-
None
-
MOODLE_22_STABLE
The online users map is showing locations of deleted users.
Steps to reproduce :
1. create new user with new location (let's say somewhere in Myanmar)
2. run cron job to update user location
3. go to page where online user map is shown and see the mark in Myanmar
4. Delete the new user from Myanmar
5. run cron job to update user location
6. go to page where online user map is shown and you still see a mark in Myanmar
workaround that also fixes users who never bothered to login : change line 38 AND 50 of getusers.php
getusers.php |
--$where = "WHERE u.lastaccess <= $timefrom
|
++$where = "WHERE 0 < u.lastaccess <= $timefrom
|