小细节优化

This commit is contained in:
tale
2016-01-29 15:01:49 +08:00
parent 7609595eba
commit 609d5a705c
3 changed files with 3 additions and 3 deletions

View File

@@ -499,7 +499,7 @@ class Route
if (false !== $match = self::match($url, $rule, $pattern)) {
// 匹配到路由规则
// 检测是否定义路由
if ($option['after_behavior']) {
if (!empty($option['after_behavior'])) {
Hook::exec($option['after_behavior'], $route);
}
if ($route instanceof \Closure) {