• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Error catching in function updateSessionActivity

sonnb

Well-known member
#1
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.png

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

Mike

XenForo developer
Staff member
#2
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.