Procházet zdrojové kódy

Merge branch 'master' of http://code.travelzs.com:3000/root/Qii

# Conflicts:
#	src/Library/Download.php
Zhu Jinhui před 6 roky
rodič
revize
94f59412ea
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Router/Parse/Normal.php

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

@@ -107,7 +107,7 @@ class Normal
                 $interSet = array_intersect_assoc($configArr, $dir);
                 if($interSet) {
                     $countInterSet = count($interSet);
-                    if($configArr[$countInterSet] == '*' || $configArr[$countInterSet] == $dirInfo[$dirInfo[$key]]) {
+                    if(isset($configArr[$countInterSet]) && ($configArr[$countInterSet] == '*' || (isset($dirInfo[$dirInfo[$key]]) && $configArr[$countInterSet] == $dirInfo[$dirInfo[$key]]))) {
                         if($matchLen < $countInterSet) {
                             $register = ['rule' => $config, 'val' => $val, 'interSet' => $interSet];
                         }else{