We're not supposed to use curly braces to access chars in strings
[viewsvn.git] / browse.php
index d7cde3aad2a32e88469979f28b9ba1cf60a03bd0..8b133419b1f698082d3719358774f27ac664390c 100644 (file)
@@ -60,7 +60,7 @@ $nodes = '';
 
 foreach ($listing AS $item)
 {
-       if ($item{ strlen($item) - 1 } == '/')
+       if ($item[ strlen($item) - 1 ] == '/')
        {
                $show['directory'] = true;
                $browse = $controller->href_compound('browse.php', $item);