Ver Fonte

Fxied:*:* 路由问题

Jinhui Zhu há 8 anos atrás
pai
commit
51913d9995
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Qii/Router/Parse/Normal.php

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

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