diff options
| -rw-r--r-- | news.php | 2 | ||||
| -rw-r--r-- | newsentry.php | 2 | ||||
| -rw-r--r-- | rss.php | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -21,7 +21,7 @@ if ($handle = opendir('./news/')) { foreach($filenames as $file) { // sort($handle, SORT_NUMERIC); - if (($file != ".") && ($file != "..") && ($file{0} != '.')) { + if (($file != ".") && ($file != "..") && ($file[0] != '.')) { echo "<h3>$file: "; $data = file_get_contents("news/$file"); //read the file diff --git a/newsentry.php b/newsentry.php index 12835a3..33f091c 100644 --- a/newsentry.php +++ b/newsentry.php @@ -12,7 +12,7 @@ function writeNewsEntry($file, $prefix) { // sort($handle, SORT_NUMERIC); - if (($file != ".") && ($file != "..") && ($file{0} != '.')) { + if (($file != ".") && ($file != "..") && ($file[0] != '.')) { echo '<div class="news">'; echo "<h3>$file: "; @@ -14,7 +14,7 @@ function processDir($dirname, $phpfile) { foreach($filenames as $file) { // sort($handle, SORT_NUMERIC); - if (($file != ".") && ($file != "..") && ($file{0} != '.')) { + if (($file != ".") && ($file != "..") && ($file[0] != '.')) { echo " <item>\n"; $datestring = $file; $datestring = str_replace(".", "-", $datestring); |
