mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正Url类一处警告错误
This commit is contained in:
@@ -251,6 +251,8 @@ class Url
|
||||
$route = $route[0];
|
||||
if (is_array($route)) {
|
||||
$route = implode('\\', $route);
|
||||
} elseif ($route instanceof \Closure) {
|
||||
continue;
|
||||
} elseif (strpos($route, '?')) {
|
||||
$route = strstr($route, '?', true);
|
||||
}
|
||||
@@ -261,6 +263,8 @@ class Url
|
||||
$route = $val['route'];
|
||||
if (is_array($route)) {
|
||||
$route = implode('\\', $route);
|
||||
} elseif ($route instanceof \Closure) {
|
||||
continue;
|
||||
} elseif (strpos($route, '?')) {
|
||||
$route = strstr($route, '?', true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user