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

Undefined variable: overall in award_criteria_courseset.php

    XMLWordPrintable

Details

    • Bug
    • Status: Waiting for peer review
    • Minor
    • Resolution: Unresolved
    • 3.11.4, 4.0
    • None
    • Badges

    Description

      PHP error message:

      PHP Notice: Undefined variable: overall in /www/badges/criteria/award_criteria_courseset.php on line 241

      This happens if there are no values to be reviewed. In this case the foreach loop in line 200 is not executed and variable overall is not defined.

      Suggested change in line 241:
      return isset($overall) ? $overall: false;
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            w-reichert Wolfgang Reichert
            Yuliya Bozhko, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: