改进Url类

This commit is contained in:
thinkphp
2016-06-27 17:35:09 +08:00
parent 75f09e94e0
commit 63837e2213

View File

@@ -243,7 +243,7 @@ class Url
} elseif (empty($pattern) && array_intersect_assoc($param, $array) == $param) {
$match = true;
}
if (!empty($param) && array_intersect_assoc($param, $array) != $param) {
if ($match && !empty($param) && array_intersect_assoc($param, $array) != $param) {
$match = false;
}
if ($match) {