Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-22 00:41:34 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-22 00:41:34 +0400
commitda299e0a7a048d26997079e1b5a160c97ccfe90a (patch)
treeb9a78c5f52aa269b3d636001df567727d049d081 /lib/files
parentf42b69d72fd456c32380b46af38eab9ef339e141 (diff)
additional readdir check in mappedlocal
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/storage/mappedlocal.php2
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;
}