mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-68536 core: Fix notice about undefined prop 'branch' in $CFG
This commit is contained in:
parent
e049d30613
commit
06cb9117d4
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ class core_plugin_manager {
|
||||||
public function all_plugins_ok($moodleversion, &$failedplugins = array(), $branch = null) {
|
public function all_plugins_ok($moodleversion, &$failedplugins = array(), $branch = null) {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
if (empty($branch)) {
|
if (empty($branch)) {
|
||||||
$branch = $CFG->branch;
|
$branch = $CFG->branch ?? '';
|
||||||
if (empty($branch)) {
|
if (empty($branch)) {
|
||||||
// During initial install there is no branch set.
|
// During initial install there is no branch set.
|
||||||
require($CFG->dirroot . '/version.php');
|
require($CFG->dirroot . '/version.php');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue