diff --git a/inc/lib_files.php b/inc/lib_files.php index 27e54259d64..0c3d84519c2 100755 --- a/inc/lib_files.php +++ b/inc/lib_files.php @@ -60,9 +60,9 @@ class OC_FILES { // files and directories echo('
'); + $filesfound=false; if (is_dir($directory)) { if ($dh = opendir($directory)) { - $filesfound=false; while (($file = readdir($dh)) !== false) { if($file<>'.' and $file<>'..'){ $filesfound=true;