diff options
author | Charles-Edouard Coste <contact@ccoste.fr> | 2010-03-13 17:44:26 +0100 |
---|---|---|
committer | Charles-Edouard Coste <contact@ccoste.fr> | 2010-03-13 17:44:26 +0100 |
commit | 37058e3861d6db75257d15e008e684bc9d3feb2d (patch) | |
tree | f6660edc29a01bb3b4e9c54e648d7f4f615a66e2 | |
parent | 16f3bd4e2334491152510598f861a1f6c1ecdae2 (diff) | |
download | nextcloud-server-37058e3861d6db75257d15e008e684bc9d3feb2d.tar.gz nextcloud-server-37058e3861d6db75257d15e008e684bc9d3feb2d.zip |
$filesfound variable may not be set when used in: if(!$filesfound)
-rwxr-xr-x | inc/lib_files.php | 2 |
1 files changed, 1 insertions, 1 deletions
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('<center><table cellpadding="6" cellspacing="0" border="0" class="browser">'); + $filesfound=false; if (is_dir($directory)) { if ($dh = opendir($directory)) { - $filesfound=false; while (($file = readdir($dh)) !== false) { if($file<>'.' and $file<>'..'){ $filesfound=true; |