Fixed Error catching in function updateSessionActivity

sonnb

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:
PHP:
$action = $router->resolveActionWithIntegerParam($routePath, $request, '');

When I access the controller will special action "controller/a.b.c", it will throw an error like this:

upload_2013-11-28_20-51-57.webp

This is because the $paramName is empty. I think XenForo will catch this case and will not throw an error here.
 
Last edited:
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.
 
Back
Top Bottom