From: Chuck Hagenbuch Date: Mon, 9 Aug 2010 04:37:54 +0000 (-0400) Subject: Cast $routeName to string X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f8aa2c3e778656d598ae4382d7a38402305638f8;p=horde.git Cast $routeName to string --- diff --git a/framework/Routes/lib/Horde/Routes/Utils.php b/framework/Routes/lib/Horde/Routes/Utils.php index 7c19d1709..f2f60505c 100644 --- a/framework/Routes/lib/Horde/Routes/Utils.php +++ b/framework/Routes/lib/Horde/Routes/Utils.php @@ -36,7 +36,6 @@ class Horde_Routes_Utils */ public $redirect; - /** * Constructor * @@ -102,7 +101,7 @@ class Horde_Routes_Utils // urlFor('named_route') // urlFor('named_route', array('id' => 3, ...)) // urlFor('static_path') - $routeName = $first; + $routeName = (string)$first; $kargs = $second; } @@ -131,7 +130,6 @@ class Horde_Routes_Utils $url = ''; if (isset($routeName)) { - if (isset($kargs['format']) && isset($this->mapper->routeNames['formatted_' . $routeName])) { $route = $this->mapper->routeNames['formatted_' . $routeName]; } elseif (isset($this->mapper->routeNames[$routeName])) {