Permalink
Browse files

Removing unused variables. Making loop easier to read.

  • Loading branch information...
1 parent 5b4d15d commit 5cbe3dbd39bbda11206ee45fb1315bf395c99fe4 @markstory markstory committed Nov 29, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −4 cake/libs/router.php
View
6 cake/libs/router.php
@@ -410,9 +410,6 @@ function parse($url) {
$self->__currentRoute[] =& $route;
$params = $route->params;
- $names = $route->keys;
- $defaults = $route->defaults;
-
$argOptions = array();
if (array_key_exists('named', $params)) {
@@ -434,7 +431,8 @@ function parse($url) {
}
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]]);
}

0 comments on commit 5cbe3db

Please sign in to comment.