Commit 06cb9117 authored by Matteo Scaramuccia's avatar Matteo Scaramuccia
Browse files

MDL-68536 core: Fix notice about undefined prop 'branch' in $CFG

parent e049d306
......@@ -752,7 +752,7 @@ class core_plugin_manager {
public function all_plugins_ok($moodleversion, &$failedplugins = array(), $branch = null) {
global $CFG;
if (empty($branch)) {
$branch = $CFG->branch;
$branch = $CFG->branch ?? '';
if (empty($branch)) {
// During initial install there is no branch set.
require($CFG->dirroot . '/version.php');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment