Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-7581

Online Users Block does not show all users online (with solution)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 1.7
    • 1.7
    • Blocks
    • None
    • Moodle 1.7 on Linux
    • MySQL
    • MOODLE_17_STABLE
    • MOODLE_17_STABLE

      The table user_lastaccess has all accesses saved, not just the last access. In File blocks/online_users/block_online_users.php just the last 20 accesses are selected, so if one user has 20 accesses, just this user is shown. To correct, change line 76 from:
      if ($pusers = get_records_sql($SQL, 0, 20 )) {
      to
      if ($pusers = get_records_sql($SQL, 0)) {

            dougiamas Martin Dougiamas
            skaldrom Michael Schneider (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.