Moodle

PHP error when create a new weekly course

Details

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

Issue Links

Activity

Hide
Sam Marshall added a comment -

thanks, looking into this now

Show
Sam Marshall added a comment - thanks, looking into this now

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: