Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38350 cache: fixed issue with siteidentifier === false

  • Loading branch information...
commit a3b63be703e6f79c90bd0c9c67ee2696604a5370 1 parent fe86ebf
@samhemelryk samhemelryk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cache/classes/helper.php
View
2  cache/classes/helper.php
@@ -548,7 +548,7 @@ public static function get_site_identifier() {
// 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.
Please sign in to comment.
Something went wrong with that request. Please try again.