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

Warning in report.php

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7.3
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      PHP 5.2
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE

      Description

      Call-time pass-by-reference has been deprecated...
      Line 210, 530, 583 and 616 :
      calling functions print_row_stats_data and report_question_stats using reference causes a PHP 5.2 to generate this warning.

      The fact these function are using values by reference is correctly defined in the function definition.
      It is just enough to remove & (reference sign in the lines).

      See attached file.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            laot Serge LAOT
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Oct/07