If you can't access the ../ folder or the ./ folder glob will return false => and count(false) returns 1 => file counts are incorrect

fns_tinybrowser.php line 438:

$filenum = $filenum + count(glob($root.$tree.$branch.sql_regcase($filetype),GLOB_NOSORT));

fix:
$tmp = glob($root.$tree.$branch.sql_regcase($filetype),GLOB_NOSORT);
$filenum = $filenum + ($tmp?count($tmp):0);

this error returns 4 times

Comments

Reg’s picture

Same as above just slightly clearer at a glance:

   $files = glob($root.$tree.$branch.sql_regcase($filetype),GLOB_NOSORT);
   if ($files !== FALSE) {
     $filenum += count($files);
  }