소스 검색

Fxied:*:* 路由问题

Jinhui Zhu 7 년 전
부모
커밋
51913d9995
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Qii/Router/Parse/Normal.php

+ 1 - 1
Qii/Router/Parse/Normal.php

@@ -58,7 +58,7 @@ class Normal
         $dirInfo[] = $fileName;
         $dir = [];
         $match = ['key' => '', 'val' => '', 'url' => $url];
-        if($this->config['*:*']) {
+        if(isset($this->config['*:*'])) {
             list($controller, $action) = explode(':', $this->config['*:*']);
             $match['match'] = '*:*';
             $match['controller'] = $controller ? $controller : 'index';