diff options
-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 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; } |