From c5402f457530577999d1adc1715c76e742ad8aa9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 19 Aug 2013 12:04:53 +0200 Subject: use strict equals in readdir loops to prevent issues with '0' files --- apps/files_trashbin/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_trashbin') diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php index 2dbaefe7a78..27f8407db06 100644 --- a/apps/files_trashbin/index.php +++ b/apps/files_trashbin/index.php @@ -23,7 +23,7 @@ if ($dir) { $dirlisting = true; $dirContent = $view->opendir($dir); $i = 0; - while($entryName = readdir($dirContent)) { + while(($entryName = readdir($dirContent)) !== false) { if (!\OC\Files\Filesystem::isIgnoredDir($entryName)) { $pos = strpos($dir.'/', '/', 1); $tmp = substr($dir, 0, $pos); -- cgit v1.2.3