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

undefined index errors in restore of database module

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When restoring a backup course that includes a database module I see the following error.
      Notice: Undefined index: RATINGS in C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\mod\data\restorelib.php on line 380

      Notice: Undefined index: COMMENTS in C:\projects\VLE\Mobile Moodle\environments\xampplite-win32-1.6.6.exe\development\offlinemoodle-0.4\htdocs\moodle\mod\data\restorelib.php on line 406

      I have the developer debug options enabled. I don't believe this shows up otherwise.

      Should a simple fix in each case. Just needs a check to see if the parameter exists before using it's children

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            colchambers Colin Chambers
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Mar/10