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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 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

      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.

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

            danmarsden Dan Marsden
            amathieson Andrew Mathieson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.