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

get_in_or_equal should support empty array

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.1
    • Component/s: Database SQL/XMLDB
    • Labels:

      Description

      The get_in_or_equal function throws coding_exception if you pass it an empty array, this is annoying as in many cases you need to use it where there might potentially be an empty array.

      (note I am going to submit pull request about this in a sec, I have patch)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    1/Jul/11