diff --git a/common.php b/common.php index 87fc498..a2723a1 100644 --- a/common.php +++ b/common.php @@ -358,7 +358,7 @@ function main($path) } else { $files = $drive->list_files($path1); } - if ( $files['type']=='folder' && substr($path, -1)!=='/' ) { + if ($path!=='') if ( $files['type']=='folder' && substr($path, -1)!=='/' ) { $tmp = path_format($_SERVER['base_disk_path'] . $path . '/'); return output('