Skip to content

Commit

Permalink
Merge pull request #2183 from rabuzarus/1412_profile_addr_fix
Browse files Browse the repository at this point in the history
fix displaying forum in hcard
  • Loading branch information
fabrixxm committed Dec 14, 2015
2 parents 616477d + e61d6e0 commit 7a5ac44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions include/identity.php
Expand Up @@ -287,11 +287,11 @@ function profile_sidebar($profile, $block = 0) {
}

// 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 = "";
Expand Down
2 changes: 1 addition & 1 deletion mod/photos.php
Expand Up @@ -37,7 +37,7 @@ function photos_init(&$a) {

$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 = "";
Expand Down
2 changes: 1 addition & 1 deletion mod/videos.php
Expand Up @@ -33,7 +33,7 @@ function videos_init(&$a) {

$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 = "";
Expand Down

0 comments on commit 7a5ac44

Please sign in to comment.