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

Fixed Typo in XenForo_DataWriter_User

Discussion in 'Resolved Bug Reports' started by HWS, Apr 14, 2014.

  1. HWS

    HWS Well-Known Member

    In 'XenForo_DataWriter_User': line 54 'verifyUserid' should be 'verifyUserId'.

    The same typo is also in XenForo_DataWriter_Follower (twice).
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Although technically incorrect, PHP is case insensitive, so they really are the same function.
  3. HWS

    HWS Well-Known Member

    It's still a typo. ;-)
  4. tyteen4a03

    tyteen4a03 Well-Known Member

    It's the principle that counts!
  5. Adrian Schneider

    Adrian Schneider Active Member

    It's an error that relies on a language hack that could change in a future version of PHP. History suggests PHP is getting stricter and stricter with each release.

    (Anyone remember what happened to vBulletin?) :rolleyes:
  6. Mike

    Mike XenForo Developer Staff Member

    Functions (and classes) are defined to be case insensitive in PHP, so I'm not sure I'd call it a language hack but a bad decision. I can't imagine it would change unless they went the way of dropping backwards compatibility and then we'd have much more fundamental stuff to deal with (probably things like scalars as objects).

    Regardless, I have changed this.
    HWS likes this.

Share This Page