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

Course: undefined status variable in /course/lib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      php notice about undefined status variable on frontpage, status was defined if the role assignment was hidden; however, it was not initiated. I suggest adding a line to initiate the status variable at beginning of the print_course function (patch attached).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aborrow Anthony Borrow
                Reporter:
                aborrow Anthony Borrow
                Tester:
                Petr Skoda
                Participants:
                Component watchers:
                Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: