additional readdir check in mappedlocal

This commit is contained in:
Thomas Müller 2013-08-21 22:41:34 +02:00
parent a89199cc7b
commit f1eec74f70
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class MappedLocal extends \OC\Files\Storage\Common{
$logicalPath = $this->mapper->physicalToLogic($physicalPath); $logicalPath = $this->mapper->physicalToLogic($physicalPath);
$dh = opendir($physicalPath); $dh = opendir($physicalPath);
while ($file = readdir($dh)) { while (($file = readdir($dh)) !== false) {
if ($file === '.' or $file === '..') { if ($file === '.' or $file === '..') {
continue; continue;
} }