From f1eec74f7048e41a876f1c757c6b953097e69872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 21 Aug 2013 22:41:34 +0200 Subject: [PATCH] additional readdir check in mappedlocal --- lib/files/storage/mappedlocal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/files/storage/mappedlocal.php b/lib/files/storage/mappedlocal.php index cf5d9b3ef4..fbf1b4ebf9 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; }