Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Utility / ThemeRegistry.php
index bc2ce5a2211d9ff24cfbda4eda720ad8bd66cd8d..fe80bdf10547e93829f798c732fd8d7115d3ef34 100644 (file)
@@ -96,7 +96,7 @@ class ThemeRegistry extends CacheCollector implements DestructableInterface {
     // are not registered, just check the existence of the key in the registry.
     // Use array_key_exists() here since a NULL value indicates that the theme
     // hook exists but has not yet been requested.
-    return array_key_exists($key, $this->storage);
+    return isset($this->storage[$key]) || array_key_exists($key, $this->storage);
   }
 
   /**