]> source.dussan.org Git - nextcloud-server.git/commitdiff
$filesfound variable may not be set when used in: if(!$filesfound)
authorCharles-Edouard Coste <contact@ccoste.fr>
Sat, 13 Mar 2010 16:44:26 +0000 (17:44 +0100)
committerCharles-Edouard Coste <contact@ccoste.fr>
Sat, 13 Mar 2010 16:44:26 +0000 (17:44 +0100)
inc/lib_files.php

index 27e54259d64dc5f8673a1271cbe4b0a4e1751289..0c3d84519c2d1299040baafce4e5ab5b780425a6 100755 (executable)
@@ -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;