From 65f842c15dc66ad7e864f062fdf7b558e6af08c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Mon, 30 Sep 2013 07:53:56 +0200 Subject: [PATCH] Fixed bug with unexpected return value of glob() --- src/MadeYourDay/Contao/CustomElements.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {