mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-38350 cache: fixed issue with siteidentifier === false
This commit is contained in:
parent
fe86ebfa4d
commit
a3b63be703
2
cache/classes/helper.php
vendored
2
cache/classes/helper.php
vendored
@ -548,7 +548,7 @@ class cache_helper {
|
||||
// If the site identifier is still null then config isn't aware of it yet.
|
||||
// We'll see if the CFG is loaded, and if not we will just use unknown.
|
||||
// It's very important here that we don't use get_config. We don't want an endless cache loop!
|
||||
if (isset($CFG->siteidentifier)) {
|
||||
if (!empty($CFG->siteidentifier)) {
|
||||
self::$siteidentifier = self::update_site_identifier($CFG->siteidentifier);
|
||||
} else {
|
||||
// It's not being recorded in MUC's config and the config data hasn't been loaded yet.
|
||||
|
Loading…
x
Reference in New Issue
Block a user