Skip to content
Browse files

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

  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Mar 20, 2013
1 parent fe86ebf commit a3b63be703e6f79c90bd0c9c67ee2696604a5370
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.

0 comments on commit a3b63be

Please sign in to comment.
You can’t perform that action at this time.