# HG changeset patch # User nanaya # Date 1440418827 -32400 # Node ID 29543401ef18f733dfe60428b58c3f94dd6bbde4 # Parent 5a4c9efd99fc9d4864cc2a4343e63f9d6dee4ef7 Ignore nonexisting files. diff -r 5a4c9efd99fc -r 29543401ef18 index.php --- a/index.php Mon Aug 24 21:13:56 2015 +0900 +++ b/index.php Mon Aug 24 21:20:27 2015 +0900 @@ -99,7 +99,10 @@ } foreach($files as $file) { - $file_stat = @stat($dir . "/". $file); + $file_path = $dir."/".$file; + + if (!file_exists($file_path)) { continue; } + $file_stat = stat($file_path); $file_rows .= ""; $file_rows .= "". $list_file_prefix . link_to($file . $file_suffix, $file . $file_suffix)."";