Stop using curly braces
[squirrelmail.git] / class / template / Template.class.php
index 27c02030ebbf7c97aeba4504d0bd7f6f0c264589..785b4aa1d895f4caa5c93a386721b65166e56b27 100644 (file)
@@ -1018,7 +1018,7 @@ class Template
         // return list of all files in a directory (and that
         // of any ancestors)
         //
-        if ($filename{strlen($filename) - 1} == '/') {
+        if ($filename[strlen($filename) - 1] == '/') {
 
             $return_array = array();
             foreach ($this->template_file_cache as $file => $file_info) {