From c6afcc57d9be194543b8c3a8b1605df098f88a8a Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 25 Feb 2011 08:00:06 +0100 Subject: [PATCH] - in function findDirs() just skip if a directory cannot be read instead of returning the list till this dir, fixes #611 Signed-off-by: Michael Kaufmann (d00p) --- lib/functions/filedir/function.findDirs.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions/filedir/function.findDirs.php b/lib/functions/filedir/function.findDirs.php index 39892bcd..e0f07b6b 100644 --- a/lib/functions/filedir/function.findDirs.php +++ b/lib/functions/filedir/function.findDirs.php @@ -48,7 +48,9 @@ function findDirs($path, $uid, $gid) if(!is_readable($path)) { - return $_fileList; + //return $_fileList; + // only 'skip' this directory, #611 + continue; } $dh = opendir($path);