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

$visitor->get( 'user_id' ) versus $visitor['user_id' ]

Discussion in 'XenForo Development Discussions' started by LPH, Feb 13, 2015.

  1. LPH

    LPH Well-Known Member

    $visitor->get( 'user_id' ) versus $visitor['user_id' ]

    I thought these were interchangeable but am trying to figure out what is happening on some sites with accounts not logging in properly.

    Are these interchangeable?

    Both show int 2 on a var_dump when user_id 2 is logged into the site.
     
  2. Mike

    Mike XenForo Developer Staff Member

    They're interchangeable.
     
  3. LPH

    LPH Well-Known Member

    Thank you. I was worried this was the answer.
     

Share This Page