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

Choice Module Fatal Error in report.php and lib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Component/s: Choice
    • Labels:
      None
    • Environment:
      Mac OS X 10.4.7 Client, Apache 1.3.33, PHP 4.4.1
    • Database:
      Any
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE

      Description

      On the main choice page and on the View x responses page, I get either of the following errors:

      Fatal error: Unsupported operand types in /Users/aim/Sites/moodle/mod/choice/report.php on line 48
      Fatal error: Unsupported operand types in /Users/aim/Sites/moodle/mod/choice/lib.php on line 338

      I have had a look at the code, and have found that changing the lines mentioned in the above errors slightly fixes the problem.

      Attached are the two diffs containing the fix which I have implemented.

        Attachments

        1. lib.diff
          0.6 kB
        2. report.diff
          0.6 kB

          Issue Links

            Activity

              People

              Assignee:
              danmarsden Dan Marsden
              Reporter:
              amathieson Andrew Mathieson
              Participants:
              Component watchers:
              Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                7/Nov/06