From 553f377ed0f1981cfd3735de1020d164e3c60914 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 30 Jun 2011 07:39:27 -0700 Subject: [PATCH] Adjusted signature for dynamic route URL creation. --- system/url.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/url.php b/system/url.php index b048dd7d..4bc7d10c 100644 --- a/system/url.php +++ b/system/url.php @@ -147,6 +147,7 @@ public static function __callStatic($method, $parameters) // ---------------------------------------------------- if (strpos($method, 'to_secure_') === 0) { + $parameters = (isset($parameters[0])) ? $parameters[0] : array(); return static::to_route(substr($method, 10), $parameters, true); } @@ -155,6 +156,7 @@ public static function __callStatic($method, $parameters) // ---------------------------------------------------- if (strpos($method, 'to_') === 0) { + $parameters = (isset($parameters[0])) ? $parameters[0] : array(); return static::to_route(substr($method, 3), $parameters); }