Skip to content

Commit

Permalink
Fixed bug with unexpected return value of glob()
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Sep 30, 2013
1 parent 2d2a7d4 commit 65f842c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MadeYourDay/Contao/CustomElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 65f842c

Please sign in to comment.