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

undefined index errors in restore of database module

    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

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Notices are out now. They weren't causing any problem but better to avoid them. Thanks for the report. Ciao

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Notices are out now. They weren't causing any problem but better to avoid them. Thanks for the report. Ciao

              People

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

                Dates

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