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

The docs for get_user_capability_course() are wrong

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.5, 2.7
    • 2.6.6, 2.7.3
    • Documentation

    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

              markn Mark Nelson
              markn Mark Nelson
              Ankit Agarwal Ankit Agarwal
              Dan Poltawski Dan Poltawski
              Dan Poltawski Dan Poltawski
              Aya Saad, David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                10/Nov/14