Browse Source

Refactoring dynamic redirects to routes.

Taylor Otwell 13 years ago
parent
commit
87ec697f2d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      system/redirect.php

+ 2 - 0
system/redirect.php

@@ -77,6 +77,8 @@ class Redirect {
 	 */
 	public static function __callStatic($method, $parameters)
 	{
+		$parameters = (isset($parameters[0])) ? $parameters[0] : array();
+
 		// ----------------------------------------------------
 		// Dynamically redirect to a secure route URL.
 		// ----------------------------------------------------