diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-22 00:41:34 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-22 00:41:34 +0400 |
commit | da299e0a7a048d26997079e1b5a160c97ccfe90a (patch) | |
tree | b9a78c5f52aa269b3d636001df567727d049d081 /lib/files | |
parent | f42b69d72fd456c32380b46af38eab9ef339e141 (diff) |
additional readdir check in mappedlocal
Diffstat (limited to 'lib/files')
-rw-r--r-- | lib/files/storage/mappedlocal.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/storage/mappedlocal.php b/lib/files/storage/mappedlocal.php index ba3fcdc5c9e..a40e18bb58a 100644 --- a/lib/files/storage/mappedlocal.php +++ b/lib/files/storage/mappedlocal.php @@ -45,7 +45,7 @@ class MappedLocal extends \OC\Files\Storage\Common{ $logicalPath = $this->mapper->physicalToLogic($physicalPath); $dh = opendir($physicalPath); - while ($file = readdir($dh)) { + while (($file = readdir($dh)) !== false) { if ($file === '.' or $file === '..') { continue; } |