Moodle
  1. Moodle
  2. MDL-13872

Possible grades notice in Assignment

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.1, 2.0
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      At line 99 in mod/assignment/index.php the variable $grades is used. However this is set in an if-block a few lines earlier and so can be undefined causing a notice.

      I'm unsure of a suitable default value (otherwise I'd just fix it)

        Gliffy Diagrams

          Activity

          Hide
          Howard Miller added a comment -

          Oh I see - null does if there's no grade. I'll commit it in the morning

          Show
          Howard Miller added a comment - Oh I see - null does if there's no grade. I'll commit it in the morning
          Hide
          Howard Miller added a comment -

          If there is no grade information a dash is printed. Stops notice.

          Show
          Howard Miller added a comment - If there is no grade information a dash is printed. Stops notice.
          Hide
          Petr Skoda added a comment -

          reviewed, closing, thanks

          Show
          Petr Skoda added a comment - reviewed, closing, thanks

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: