Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3662

HotPot restore fails: undefined $DB

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.18
    • Fix Version/s: 1.9.19
    • Component/s: Module: HotPot
    • Labels:
      None
    • Database:
      Any
    • Workaround:
      Hide

      use attached mod/hotpot/restorelib.php

      Show
      use attached mod/hotpot/restorelib.php
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Attempt to restore cousre containing HotPot activities fails with fatal error: undefined $DB

      CAUSE: use of $DB at line 303 in mod/hotpot/restorelib.php.
      SOLUTION: use $db instead (see lines 301 - 302 in attached file)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Jul/12