Mercurial > dirlist-php
comparison index.php @ 36:9a2e0b2a2d1d
Suppress stat() failure.
- prevents warning being emitted
- I don't care if the file is missing or whatever
- can't be easily caught with php anyway
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 13 Nov 2014 16:10:14 +0900 |
parents | 21132c7b6aaa |
children | 08c4e9388f54 |
comparison
equal
deleted
inserted
replaced
35:21132c7b6aaa | 36:9a2e0b2a2d1d |
---|---|
94 $file_rows .= "<tr><td colspan=3>" . link_to(dirname($uri) . "/", "[up]") . "</td></tr>"; | 94 $file_rows .= "<tr><td colspan=3>" . link_to(dirname($uri) . "/", "[up]") . "</td></tr>"; |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
98 foreach($files as $file) { | 98 foreach($files as $file) { |
99 $file_stat = stat($dir . "/". $file); | 99 $file_stat = @stat($dir . "/". $file); |
100 | 100 |
101 $file_rows .= "<tr>"; | 101 $file_rows .= "<tr>"; |
102 $file_rows .= "<td>".link_to($file . $file_suffix, $file . $file_suffix)."</td>"; | 102 $file_rows .= "<td>".link_to($file . $file_suffix, $file . $file_suffix)."</td>"; |
103 | 103 |
104 $file_rows .= "<td>"; | 104 $file_rows .= "<td>"; |