Moodle

Prevent PHP notices at install time because $CFG->release is undefined

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.8.6, 1.9.2
  • Fix Version/s: 1.8.7, 1.9.3
  • Component/s: Installation
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

At install time, when environmental tests are executed, they use the $CFG->release value to change custom checks behaviour. That variable isn't defined at install time and causes PHP notices.

Prevent them.

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Done in 18_STABLE, 19_STABLE and HEAD. Also removed hack used to fix this in installer (MDL-16008).

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Done in 18_STABLE, 19_STABLE and HEAD. Also removed hack used to fix this in installer (MDL-16008). Ciao
Hide
Tim Hunt added a comment -

Looks (and tests) good to me.

Show
Tim Hunt added a comment - Looks (and tests) good to me.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: