]> source.dussan.org Git - nextcloud-server.git/commitdiff
additional readdir check in mappedlocal
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 21 Aug 2013 20:41:34 +0000 (22:41 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 21 Aug 2013 22:17:08 +0000 (00:17 +0200)
lib/files/storage/mappedlocal.php

index cf5d9b3ef4f0b5b048e373fcc50cb6f7d7db2b49..fbf1b4ebf966b98af1bc67e79a926c5fb93e74a3 100644 (file)
@@ -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;
                        }