MDL-2631 Avoid some notices about missing CFG variables during install
This commit is contained in:
@@ -185,7 +185,7 @@ class completion_info {
|
||||
global $CFG;
|
||||
|
||||
// First check global completion
|
||||
if ($CFG->enablecompletion == COMPLETION_DISABLED) {
|
||||
if (!isset($CFG->enablecompletion) || $CFG->enablecompletion == COMPLETION_DISABLED) {
|
||||
return COMPLETION_DISABLED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user