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

Incorrect return type for count_enrolled_users in enrollib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8.7, 3.9.4, 3.10.1
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE

      Description

      The phpdoc for the function count_enrolled_users in lib/enrollib.php says it returns an array. In fact it returns an int.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sharpchi Mark Sharp
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: