summaryrefslogtreecommitdiffstats
path: root/newsentry.php
diff options
context:
space:
mode:
Diffstat (limited to 'newsentry.php')
-rw-r--r--newsentry.php2
1 files changed, 1 insertions, 1 deletions
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: ";