Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use array_keys instead of array_flip

  • Loading branch information...
commit 9be789d3714b5c48fac940729268c4eeae72cf40 1 parent 1765257
Mike Gibson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Routing/Route/CakeRoute.php
View
2  lib/Cake/Routing/Route/CakeRoute.php
@@ -522,7 +522,7 @@ protected function _writeUrl($params) {
$lengths = array_map('strlen', $this->keys);
$flipped = array_combine($this->keys, $lengths);
arsort($flipped);
- $keys = array_flip($flipped);
+ $keys = array_keys($flipped);
foreach ($keys as $key) {
$string = null;
Please sign in to comment.
Something went wrong with that request. Please try again.