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

The docs for get_user_capability_course() are wrong

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.5, 2.7
    • Fix Version/s: 2.6.6, 2.7.3
    • Component/s: Documentation
    • Labels:

      Description

      The @return in the php docs suggests it will be "Array of courses, may have zero entries. Or false if query failed.", however if you actually look at the return statement in the function it is "return empty($courses) ? false : $courses;".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markn Mark Nelson
                Reporter:
                markn Mark Nelson
                Peer reviewer:
                Ankit Agarwal
                Integrator:
                Dan Poltawski
                Tester:
                Dan Poltawski
                Participants:
                Component watchers:
                David Mudrák (@mudrd8mz), Helen Foster
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Nov/14