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

Warnings when creating a new index or key using XMLDB

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Database SQL/XMLDB
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      I spotted this trying to add a unique index to role.shortorder in lib/db in HEAD. I get PHP warnings. Similar warnings when you try to add a key.

      I think something that is really an array is getting initialised to null, rather than array(), and later the code tries to implode it.

      I could not see how to fix it myself after a few minutes, and I don't think it stops me actually creating the index, so just filing it here for now.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10