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

Syntax error in quiz/locallib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      Following function declaration generates syntax error:

      /**

      • Array of names of quizzes a category (and optionally its childs) appears in

      *

      • @return array Array of quiz names (with quiz->id as array keys)
      • @param integer Quiz category id
      • @param boolean Examine category childs recursively
      • @param array Array of categories (id) to exclude

      */

      function quizzes_category_used($id, $recursive=false, &$excluded = array()) {

      (currently line 2504)

      You can't do that! The optional parameter is a pass-by-reference, that won't work. Not sure what was intended though!

        Attachments

          Activity

            People

            Assignee:
            stronk7 Eloy Lafuente (stronk7)
            Reporter:
            howardsmiller Howard Miller
            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: