Skip to content

Commit

Permalink
removing unused variable, fixes #2227
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Nov 7, 2011
1 parent bab6136 commit 7224de9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/Cake/Routing/Router.php
Expand Up @@ -820,7 +820,7 @@ public static function url($url = null, $full = false) {
* @see Router::url() * @see Router::url()
*/ */
protected static function _handleNoRoute($url) { protected static function _handleNoRoute($url) {
$named = $args = $query = array(); $named = $args = array();
$skip = array_merge( $skip = array_merge(
array('bare', 'action', 'controller', 'plugin', 'prefix'), array('bare', 'action', 'controller', 'plugin', 'prefix'),
self::$_prefixes self::$_prefixes
Expand All @@ -847,7 +847,7 @@ protected static function _handleNoRoute($url) {
} }
} }


if (empty($named) && empty($args) && empty($query) && (!isset($url['action']) || $url['action'] === 'index')) { if (empty($named) && empty($args) && (!isset($url['action']) || $url['action'] === 'index')) {
$url['action'] = null; $url['action'] = null;
} }


Expand Down Expand Up @@ -881,9 +881,6 @@ protected static function _handleNoRoute($url) {
} }
} }
} }
if (!empty($query)) {
$output .= Router::queryString($query);
}
return $output; return $output;
} }


Expand Down

0 comments on commit 7224de9

Please sign in to comment.