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

Wrong usage of continue in get_user_profile_fields()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 2.8.9, 2.9.3
    • 2.8.8, 2.9.2, 3.0
    • Gradebook

    Description

      One of the continue statements is used in get_user_profile_fields() function in grade/lib.php outside of a loop:

                  if (!is_array($customfields)) {
                      continue;
                  }
      

      In PHP 7 this will cause fatal error:
      Fatal error: 'continue' not in the 'loop' or 'switch' context in grade/lib.php on line 3147 (https://github.com/moodle/moodle/blob/master/grade/lib.php#L3146).

      Attachments

        Activity

          People

            marina Marina Glancy
            tmuras Tomasz Muras
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            John Okely John Okely
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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