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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      Moodle 1.7 on Linux
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE

      Description

      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)) {

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dougiamas Martin Dougiamas
                Reporter:
                skaldrom Michael Schneider
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  7/Nov/06