// #############################################################################
/**
* Works out if a user is a member of the specified usergroup(s)
*
* This function can be overloaded to test multiple usergroups: is_member_of($user, 1, 3, 4, 6...)
*
* @param array User info array - must contain userid, usergroupid and membergroupids fields
* @param integer Usergroup ID to test
* @param boolean Pull result from cache
*
* @return boolean
*/
function is_member_of(&$userinfo, $usergroupid, $cache = true)
so when i'm having:
PHP Code:
if (is_member_of($vbulletin->userinfo, $vbulletin->options['login_groups']))
{