aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-08-21 22:41:34 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-08-22 00:17:08 +0200
commitf1eec74f7048e41a876f1c757c6b953097e69872 (patch)
tree0e992954bfa867cb30e9d7b4be747efdcef5042c /lib/files
parenta89199cc7bd19f6ba3e76fcd510219b2bd930ae6 (diff)
downloadnextcloud-server-f1eec74f7048e41a876f1c757c6b953097e69872.tar.gz
nextcloud-server-f1eec74f7048e41a876f1c757c6b953097e69872.zip
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 cf5d9b3ef4f..fbf1b4ebf96 100644
--- a/lib/files/storage/mappedlocal.php
+++ b/lib/files/storage/mappedlocal.php
@@ -65,7 +65,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;
}