We're not supposed to use curly braces to access chars in strings
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Jan 2006 00:46:17 +0000 (00:46 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Jan 2006 00:46:17 +0000 (00:46 +0000)
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);