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

remotes/origin/stable
Charles-Edouard Coste 15 years ago
parent 16f3bd4e23
commit 37058e3861
  1. 2
      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;

Loading…
Cancel
Save