Skip to content

Commit

Permalink
[WebBundle] fixed invalid assumption in Mustache
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswallsmith authored and fabpot committed Apr 16, 2010
1 parent 7973271 commit 21c3458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Framework/WebBundle/Util/Mustache.php
Expand Up @@ -34,7 +34,7 @@ static public function renderDir($dir, $parameters)
{
foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($dir), \RecursiveIteratorIterator::LEAVES_ONLY) as $file)
{
if ($file->isDot())
if ($file instanceof \DirectoryIterator && $file->isDot())
{
continue;
}
Expand Down

0 comments on commit 21c3458

Please sign in to comment.