mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Minor cleanup
This commit is contained in:
parent
df003ec7e8
commit
d582b712db
1 changed files with 2 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ class Router
|
|||
|
||||
// Check if $act has any routes defined.
|
||||
$action = $action_info->action->{$act} ?? null;
|
||||
if ($action->route)
|
||||
if ($action && $action->route)
|
||||
{
|
||||
$result = self::_insertRouteVars($action->route, $args2);
|
||||
if ($result !== false)
|
||||
|
|
@ -221,7 +221,7 @@ class Router
|
|||
}
|
||||
}
|
||||
|
||||
// Otherwise, try the generic mid/act pattern.
|
||||
// Try the generic mid/act pattern.
|
||||
return $args['mid'] . '/' . $args['act'] . (count($args2) ? ('?' . http_build_query($args2)) : '');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue