Browse Source

Fix bug in redirect.

Taylor Otwell 13 years ago
parent
commit
b625ebdcf3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/redirect.php

+ 2 - 2
laravel/redirect.php

@@ -79,9 +79,9 @@ class Redirect extends Response {
 	 */
 	public static function __callStatic($method, $parameters)
 	{
-		$parameters = (isset($parameters[0])) ? $parameters[0] : array();
-
 		$status = (isset($parameters[1])) ? $parameters[1] : 302;
+		
+		$parameters = (isset($parameters[0])) ? $parameters[0] : array();
 
 		if (strpos($method, 'to_secure_') === 0)
 		{