View Single Post
Old 11 May 2014, 12:47
kh99 kh99 is offline
Join Date: Aug 2009
Real name: Kevin
$db->query_first() will return an array (even if you are selecting only one field), or else NULL if it fails. So you should check for NULL, but maybe just try using $a['password'] and see if that works.

Edit: also I don't think $vbulletin->userinfo has been updated at that point (since the user was just created), so try using $userinfo and/or $userid instead. And of course using those is probably better than doing your own query.

Last edited by kh99; 11 May 2014 at 12:52.
Reply With Quote