diff --git a/src/MadeYourDay/Contao/CustomElements.php b/src/MadeYourDay/Contao/CustomElements.php index e6d7ebf..c7c5f38 100644 --- a/src/MadeYourDay/Contao/CustomElements.php +++ b/src/MadeYourDay/Contao/CustomElements.php @@ -604,8 +604,8 @@ public static function loadConfig() $fileFullPath = TL_ROOT . '/' . $filePath; $cacheHash = md5(implode(',', array_merge( - glob(TL_ROOT . '/templates/rsce_*'), - glob(TL_ROOT . '/templates/*/rsce_*') + glob(TL_ROOT . '/templates/rsce_*') ?: array(), + glob(TL_ROOT . '/templates/*/rsce_*') ?: array() ))); if (file_exists($fileFullPath)) {