修正一处路由的Notice

This commit is contained in:
huangdijia
2015-12-22 13:22:49 +08:00
parent 5b75506aa7
commit 743bffb381

View File

@@ -311,7 +311,7 @@ class Route
$rule = array_shift($val);
}
// 单项路由
$route = $val['route'];
$route = !empty($val['route'])?$val['route']:'';
if (0 === strpos($rule, '/') && preg_match($rule, $url, $matches)) {
return self::checkRegex($route, $url, $matches);
} else {