Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusnordlander committed May 24, 2013
1 parent 1dabcfb commit a8e45cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gittern/Gaufrette/GitternIndexAdapter.php
Expand Up @@ -118,7 +118,7 @@ public function rename($key, $new)
public function isDirectory($directory_key) public function isDirectory($directory_key)
{ {
$directory_key = trim($directory_key, '/'); $directory_key = trim($directory_key, '/');
foreach ($this->getKeys() as $key) foreach ($this->keys() as $key)
{ {
if (strpos($key, $directory_key.'/') === 0) if (strpos($key, $directory_key.'/') === 0)
{ {
Expand All @@ -133,4 +133,4 @@ public function supportsMetadata()
{ {
return true; return true;
} }
} }

0 comments on commit a8e45cc

Please sign in to comment.