aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-05-31 14:36:14 -0700
committernobody <nobody@zotlabs.com>2021-05-31 14:36:14 -0700
commit462980c70a2698490d97a481cee0f2500dacb91c (patch)
tree4935db45ad6fbe37cd0af3b93bbb20ecb656c752 /include/text.php
parenta96345401f47be71a6eef531e204c0e25b792a16 (diff)
parent217168628421f4e394b9b85e33d2d653d8b5b3d6 (diff)
downloadvolse-hubzilla-462980c70a2698490d97a481cee0f2500dacb91c.tar.gz
volse-hubzilla-462980c70a2698490d97a481cee0f2500dacb91c.tar.bz2
volse-hubzilla-462980c70a2698490d97a481cee0f2500dacb91c.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/text.php b/include/text.php
index 749e1fd70..622c44f14 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1108,7 +1108,7 @@ function magiclink_url($observer,$myaddr,$url) {
function micropro($contact, $redirect = false, $class = '', $mode = false) {
- if($contact['click'])
+ if(x($contact,'click'))
$url = '#';
else
$url = chanlink_hash($contact['xchan_hash']);
@@ -1121,10 +1121,10 @@ function micropro($contact, $redirect = false, $class = '', $mode = false) {
$tpl = 'micropro_card.tpl';
return replace_macros(get_markup_template($tpl), array(
- '$click' => (($contact['click']) ? $contact['click'] : ''),
- '$class' => $class . (($contact['archived']) ? ' archived' : ''),
- '$oneway' => (($contact['oneway']) ? true : false),
- '$perminfo' => $contact['perminfo'],
+ '$click' => (x($contact,'click') ? $contact['click'] : ''),
+ '$class' => $class . (x($contact,'archived') && $contact['archived'] ? ' archived' : ''),
+ '$oneway' => (x($contact,'oneway') && $contact['oneway'] ? true : false),
+ '$perminfo' => (x($contact,'perminfo') ? $contact['perminfo'] : ''),
'$url' => $url,
'$photo' => $contact['xchan_photo_s'],
'$name' => $contact['xchan_name'],