]> git.mxchange.org Git - friendica.git/commitdiff
fix account_type
authorrabuzarus <>
Mon, 14 Dec 2015 13:12:56 +0000 (14:12 +0100)
committerrabuzarus <>
Mon, 14 Dec 2015 13:12:56 +0000 (14:12 +0100)
include/identity.php
mod/photos.php
mod/videos.php

index 2230d98a42f66385948fbf8d6efafd15bda3ecc3..b5791ba1e90672f75f8b8f61190c4c20bc808485 100644 (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 = "";
index 6b97d7d4fb42bbb2231a91dbed4a0aa92b197e43..a9dade6a81c8e291f4451985f89d889118a47847 100644 (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 = "";
index 7ea09d6a93d419475341a305b978f712b88d6391..bf8d696b60f90cceef1b14d825ba70151cde932f 100644 (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 = "";