修正几处Notice错误

This commit is contained in:
huangdijia
2015-12-22 11:59:02 +08:00
parent 0e6afef0be
commit 5b75506aa7
3 changed files with 5 additions and 5 deletions

View File

@@ -303,7 +303,7 @@ class App
// 路由检测
if (!empty($config['url_route_on'])) {
// 开启路由 则检测路由配置
Route::register($config['route']);
Route::register(!empty($config['route'])?$config['route']:null);
$result = Route::check($path_info, $depr);
if (false === $result) {
// 路由无效