Skip to content

Commit

Permalink
FileStorage: return if directory doesn't exists
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Oct 27, 2015
1 parent 8ad1a8d commit 6c88181
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/FileStorage.php
Expand Up @@ -300,6 +300,11 @@ private function safe_store($pathname, $value)
*/
public function getIterator()
{
if (!is_dir($this->path))
{
return;
}

$iterator = new \DirectoryIterator($this->path);

foreach ($iterator as $file)
Expand Down

0 comments on commit 6c88181

Please sign in to comment.