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

Inaccurate query in get_capability_info()

    XMLWordPrintable

    Details

      Description

      The statement used in get_capability_info() in accesslib.php to get all capabilities is:

      $caps = $DB->get_records('capabilities', array(), 'id, name, captype, riskbitmask');
      

      This obviously returns the records required but seems slightly wrong as the id is unique, so the rest of the sort parameters are redundant.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                2/Feb/15