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

Possible grades notice in Assignment

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

          Attachments

            Activity

            Hide
            howardsmiller Howard Miller added a comment -

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

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

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

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

            reviewed, closing, thanks

            Show
            skodak 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:
                  Fix Release Date:
                  15/May/08