Commit b625ebdc authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in redirect.

parent 0b3ecf89
...@@ -79,10 +79,10 @@ class Redirect extends Response { ...@@ -79,10 +79,10 @@ class Redirect extends Response {
*/ */
public static function __callStatic($method, $parameters) public static function __callStatic($method, $parameters)
{ {
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
$status = (isset($parameters[1])) ? $parameters[1] : 302; $status = (isset($parameters[1])) ? $parameters[1] : 302;
$parameters = (isset($parameters[0])) ? $parameters[0] : array();
if (strpos($method, 'to_secure_') === 0) if (strpos($method, 'to_secure_') === 0)
{ {
return static::to(URL::to_route(substr($method, 10), $parameters, true), $status); return static::to(URL::to_route(substr($method, 10), $parameters, true), $status);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment