Merge pull request #627 from ChrisThompsonTLDR/bugfix/route-arrays
Fixes a bug where passed to route() causes errors
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1201,7 +1201,7 @@ class FormBuilder
|
|||||||
protected function getRouteAction($options)
|
protected function getRouteAction($options)
|
||||||
{
|
{
|
||||||
if (is_array($options)) {
|
if (is_array($options)) {
|
||||||
return $this->url->route($options[0], array_slice($options, 1));
|
return $this->url->route($options[0], head(array_slice($options, 1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->url->route($options);
|
return $this->url->route($options);
|
||||||
|
|||||||
Reference in new issue
Block a user