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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.7
    • 1.7
    • Choice
    • None
    • Mac OS X 10.4.7 Client, Apache 1.3.33, PHP 4.4.1
    • Any
    • MOODLE_17_STABLE
    • 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

              danmarsden Dan Marsden
              amathieson Andrew Mathieson
              Dan Marsden, Amaia Anabitarte, Carlos Escobedo, Laurent David, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                7/Nov/06