Skip to content

Commit

Permalink
[Finder] no PHP warning on empty directory iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
ggottwald authored and fabpot committed Sep 14, 2016
1 parent 81e9713 commit 695e341
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -137,6 +137,10 @@ public function isRewindable()
return $this->rewindable;
}

if ('' === $this->getPath()) {
return $this->rewindable = false;
}

if (false !== $stream = @opendir($this->getPath())) {
$infos = stream_get_meta_data($stream);
closedir($stream);
Expand Down

0 comments on commit 695e341

Please sign in to comment.