Moodle

Typo in /course/report/log/lib.php

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.4
  • Fix Version/s: 1.9.5
  • Component/s: Course
  • Labels:
    None
  • Environment:
    N/A
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

In the latest weekly build of 1.9.4+ (as of 2/5/09), there seems to be a typo on line 58 of the file in:

/course/report/log/lib.php

The addition of "$limitfrom, $iminum" to the end of the parameters is the culprit. $imitnum should be $limitnum, should it not? This is only in the latest revision of this file (1.22.2.3).

Currently:
$courseusers = get_group_users($selectedgroup, 'u.lastname ASC', '', 'u.id, u.firstname, u.lastname, u.idnumber', $limitfrom, $imitnum);

Correction:

$courseusers = get_group_users($selectedgroup, 'u.lastname ASC', '', 'u.id, u.firstname, u.lastname, u.idnumber', $limitfrom, $limitnum);

Thanks!

Activity

Hide
Petr Škoda (skodak) added a comment -

fixed in cvs, thanks

Show
Petr Škoda (skodak) added a comment - fixed in cvs, thanks
Hide
Jerome Mouneyrac added a comment -

thanks everybody, issue closed.

Show
Jerome Mouneyrac added a comment - thanks everybody, issue closed.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: