$filesfound variable may not be set when used in: if(!$filesfound)
This commit is contained in:
parent
16f3bd4e23
commit
37058e3861
|
@ -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…
Reference in New Issue