Ignore nonexisting files.
1 files changed, 4 insertions(+), 1 deletions(-)

M index.php
M index.php +4 -1
@@ 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 .= "<tr>";
       $file_rows .= "<td>". $list_file_prefix . link_to($file . $file_suffix, $file . $file_suffix)."</td>";