diff core/lib/Drupal/Core/Utility/ThemeRegistry.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Utility/ThemeRegistry.php	Mon Apr 23 09:33:26 2018 +0100
+++ b/core/lib/Drupal/Core/Utility/ThemeRegistry.php	Mon Apr 23 09:46:53 2018 +0100
@@ -96,7 +96,7 @@
     // 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);
   }
 
   /**