}
// check if profile is a forum
- if((x($profile['page-flags']) == 2)
- || (x($profile['page-flags']) == 5)
- || (x($profile['forum']))
- || (x($profile['prv']))
- || (x($profile['community'])))
+ if((intval($profile['page-flags']) == PAGE_COMMUNITY)
+ || (intval($profile['page-flags']) == PAGE_PRVGROUP)
+ || (intval($profile['forum']))
+ || (intval($profile['prv']))
+ || (intval($profile['community'])))
$account_type = t('Forum');
else
$account_type = "";
$profile = get_profiledata_by_nick($nick, $a->profile_uid);
- if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
+ if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP))
$account_type = t('Forum');
else
$account_type = "";
$profile = get_profiledata_by_nick($nick, $a->profile_uid);
- if((x($profile['page-flags']) == 2) || (x($profile['page-flags']) == 5))
+ if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP))
$account_type = t('Forum');
else
$account_type = "";