Browse Source

$filesfound variable may not be set when used in: if(!$filesfound)

tags/v3.0
Charles-Edouard Coste 14 years ago
parent
commit
37058e3861
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      inc/lib_files.php

+ 1
- 1
inc/lib_files.php View File

@@ -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;

Loading…
Cancel
Save