Removing unused variables. Making loop easier to read.

This commit is contained in:
mark_story 2009-11-28 21:58:02 -05:00
parent 5b4d15dc3b
commit 5cbe3dbd39

View file

@ -410,9 +410,6 @@ class Router {
$self->__currentRoute[] =& $route;
$params = $route->params;
$names = $route->keys;
$defaults = $route->defaults;
$argOptions = array();
if (array_key_exists('named', $params)) {
@ -434,7 +431,8 @@ class Router {
}
if (isset($params['pass'])) {
for ($j = count($params['pass']) - 1; $j > -1; $j--) {
$j = count($params['pass']);
while($j--) {
if (isset($out[$params['pass'][$j]])) {
array_unshift($out['pass'], $out[$params['pass'][$j]]);
}