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

Bug in hotpot upgrade script 1.6.1 -> 1.6.2 with MetaColumns() method

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.9.11
    • None
    • Module: HotPot
    • None
    • Moodle 1.6.2, PostgreSQL 8.1, platform independent
    • PostgreSQL
    • MOODLE_19_STABLE

    Description

      During an upgrade from 1.6.1+ to 1.6.2 I had a critical bug in hotpot module saying something about MetaColumns() as a non-object member.
      Here is the patch:

      Index: mod/hotpot/db/postgres7.php
      ===================================================================
      RCS file: /cvsroot/moodle/moodle/mod/hotpot/db/postgres7.php,v
      retrieving revision 1.16.2.3
      diff -c -r1.16.2.3 postgres7.php

          • mod/hotpot/db/postgres7.php 13 Sep 2006 08:26:16 -0000 1.16.2.3
          • mod/hotpot/db/postgres7.php 13 Sep 2006 11:56:13 -0000
            ***************
          • 1,6 ****
            <?PHP
            function hotpot_upgrade($oldversion) {
            ! global $CFG;
            $ok = true;

      // if the version number indicates this could be an early HotPot v2.1 (Moodle 1.6),
      — 1,6 ----
      <?PHP
      function hotpot_upgrade($oldversion) {
      ! global $db, $CFG;
      $ok = true;

      // if the version number indicates this could be an early HotPot v2.1 (Moodle 1.6),

      Attachments

        Activity

          People

            xxxxxxx Gordon Bateson
            mudrd8mz David Mudrák (@mudrd8mz)
            Nobody Nobody
            Gordon Bateson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: