X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fvideos.php;h=de9feac06a385a91eb5ad86cc55257847b4cd7b0;hb=cd7ec72b205ad2e2b177a9a76888e73a065b831c;hp=ae00185cca9da11fe03c6352499ea820be86ae16;hpb=39b37281a78b58b50503056e69b2aaa9885257b0;p=friendica.git diff --git a/mod/videos.php b/mod/videos.php index ae00185cca..de9feac06a 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -33,18 +33,23 @@ function videos_init(&$a) { $profile = get_profiledata_by_nick($nick, $a->profile_uid); - if((x($profile['page-flags']) == 1) + if((x($profile['page-flags']) == 1) || (x($profile['page-flags']) == 2) - || (x($profile['page-flags']) == 5)) + || (x($profile['page-flags']) == 5)) { $account_type = page_type_translate($profile['page-flags']); + } + else { + $account_type = ""; + } $tpl = get_markup_template("vcard-widget.tpl"); $vcard_widget .= replace_macros($tpl, array( - '$name' => $profile[name], - '$photo' => $profile[photo], - '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ''), + '$name' => $profile['name'], + '$photo' => $profile['photo'], + '$addr' => (($profile['addr'] != "") ? $profile['addr'] : ""), '$account_type' => $account_type, + '$pdesc' => (($profile['pdesc'] != "") ? $profile['pdesc'] : ""), ));