Fixed Error catching in function updateSessionActivity


Well-known member
An error will be thrown if we do not provide $paramName for function resolveActionWithIntegerParam in Route Prefix

For example: If I use this code:
$action = $router->resolveActionWithIntegerParam($routePath, $request, '');
When I access the controller will special action "controller/a.b.c", it will throw an error like this:


This is because the $paramName is empty. I think XenForo will catch this case and will not throw an error here.
Last edited:


XenForo developer
Staff member
I can suppress the error, but if I understand what you're doing, I don't see how it makes sense -- you're parsing an integer param but throwing away the only identifying part of it.