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

Syntax error in quiz/locallib.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • 1.5
    • Quiz
    • None
    • All
    • MOODLE_15_STABLE

      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!

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