1. 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

Discussion in 'Resolved Bug Reports' started by sonnb, Nov 28, 2013.

  1. sonnb

    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:
    $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: Nov 28, 2013
    Adam Howard likes this.
  2. Mike

    Mike 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.
    sonnb likes this.
  3. sonnb

    sonnb Well-Known Member

    Yes, I see that Mike. Just a suggestion that XenForo will handle this case.

Share This Page