From e61d6e030eefa00685020f44601d3363814a5dae Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 14 Dec 2015 14:12:56 +0100 Subject: [PATCH] fix account_type --- include/identity.php | 10 +++++----- mod/photos.php | 2 +- mod/videos.php | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/identity.php b/include/identity.php index 2230d98a42..b5791ba1e9 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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 = ""; diff --git a/mod/photos.php b/mod/photos.php index 6b97d7d4fb..a9dade6a81 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -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 = ""; diff --git a/mod/videos.php b/mod/videos.php index 7ea09d6a93..bf8d696b60 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -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 = ""; -- 2.39.5