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

            maherne Michael Aherne
            maherne Michael Aherne
            Marina Glancy Marina Glancy
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2/Feb/15