修正Route类的一处bug

This commit is contained in:
thinkphp
2016-05-04 15:45:43 +08:00
parent 027d4d5b88
commit 344ec81981

View File

@@ -130,7 +130,7 @@ class Route
}
if (0 === strpos($key, '[')) {
if (empty($val)) {
break;
continue;
}
$key = substr($key, 1, -1);
$result = ['routes' => $val, 'option' => $option, 'pattern' => $pattern];