Browse Source

Merge pull request #670 from kbanman/hmvc-fix

Add support for non-string parameters in controller routes
Taylor Otwell 12 years ago
parent
commit
feb651f630
1 changed files with 2 additions and 0 deletions
  1. 2 0
      laravel/routing/controller.php

+ 2 - 0
laravel/routing/controller.php

@@ -179,6 +179,8 @@ abstract class Controller {
 		// controllers with much less code than would be usual.
 		foreach ($parameters as $key => $value)
 		{
+			if ( ! is_string($value)) continue;
+
 			$search = '(:'.($key + 1).')';
 
 			$destination = str_replace($search, $value, $destination, $count);