Browse Source

fix account_type

pull/2183/head
rabuzarus 5 years ago
parent
commit
e61d6e030e
3 changed files with 7 additions and 7 deletions
  1. +5
    -5
      include/identity.php
  2. +1
    -1
      mod/photos.php
  3. +1
    -1
      mod/videos.php

+ 5
- 5
include/identity.php View File

@ -287,11 +287,11 @@ if(! function_exists('profile_sidebar')) {
}
// 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 = "";


+ 1
- 1
mod/photos.php View File

@ -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 = "";


+ 1
- 1
mod/videos.php View File

@ -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 = "";


Loading…
Cancel
Save