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

PHP error when create a new weekly course

    XMLWordPrintable

    Details

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

      Description

      Create a weekly course
      Go the page
      Error message is displayed:
      Notice: Undefined variable: completioninfo in /home/jerome/Projects/Moodle_HEAD/moodle/course/lib.php on line 1537

      Fatal error: Call to a member function is_enabled() on a non-object in /home/jerome/Projects/Moodle_HEAD/moodle/course/lib.php on line 1537

      It is normal cause completioninfo is initialized inside a "if" block, and the usage is ouside the block. Maybe a empty() test missing. Don't know exactly what you try to do Sam, I let you fix it

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quen Sam Marshall
                Reporter:
                jerome Jérôme Mouneyrac
                Tester:
                Jérôme Mouneyrac
                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:
                  Fix Release Date:
                  24/Nov/10