]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Bugfix: The "keywords" field in the gcontact table wasn't set correctly
[friendica.git] / mod / photos.php
index 7ca850bc900c73c34f2f1f11b697f3da6311e8a0..a9dade6a81c8e291f4451985f89d889118a47847 100644 (file)
@@ -37,14 +37,10 @@ function photos_init(&$a) {
 
                $profile = get_profiledata_by_nick($nick, $a->profile_uid);
 
-               if((x($profile['page-flags']) == 1) 
-                               || (x($profile['page-flags']) == 2)
-                               || (x($profile['page-flags']) == 5)) {
-                       $account_type = page_type_translate($profile['page-flags']);
-               }
-               else {
+               if((intval($profile['page-flags']) == PAGE_COMMUNITY) || (intval($profile['page-flags']) == PAGE_PRVGROUP))
+                       $account_type = t('Forum');
+               else
                        $account_type = "";
-               }
 
                $tpl = get_markup_template("vcard-widget.tpl");