fixed bugs found when unit testing.

This commit is contained in:
Taylor Otwell
2011-11-02 23:02:23 -05:00
parent 9caf239f6b
commit 895d876463
4 changed files with 47 additions and 28 deletions

View File

@@ -186,7 +186,9 @@ class Route {
{
if (is_array($this->callback) and isset($this->callback[$name]))
{
return (array) $this->callback[$name];
$filters = $this->callback[$name];
return (is_string($filters)) ? explode('|', $filters) : (array) $filters;
}
return array();