-
Bug
-
Resolution: Fixed
-
Minor
-
4.0.8
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
-
MDL-78242-401 -
As happens in Workplace (WP-1932, WPQA-52) the following is observed during installation:
++ Success (0.05 seconds) ++
|
|
-->tool_tenant
|
|
Warning: Undefined property: stdClass::$coursecontact in /var/www/html/course/classes/category.php on line 906
|
The line in question. We should be consistent with all other uses of this config property and avoid these PHP notices:
$ git grep "if.*CFG\->coursecontact"
|
course/classes/category.php: if (!$CFG->coursecontact || !in_array($roleid, explode(',', $CFG->coursecontact))) {
|
course/classes/category.php: if (empty($courses) || empty($CFG->coursecontact)) {
|
course/classes/list_element.php: if (empty($CFG->coursecontact)) {
|
enrol/self/lib.php: if (!empty($CFG->coursecontact)) {
|
lib/accesslib.php: if (empty($CFG->coursecontact)) {
|