Commit f2363b11 authored by Taylor Otwell's avatar Taylor Otwell

return empty array when nested route directory doesnt have route file.

parent e40faa19
......@@ -54,7 +54,7 @@ class Loader {
{
if (is_dir($path = $this->path.implode('/', array_slice($segments, 0, $key + 1))))
{
return require $path.'/routes'.EXT;
return (file_exists($path = $path.'/routes'.EXT)) ? require $path : array();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment