diff options
author | Mario <mario@mariovavti.com> | 2021-04-20 08:53:32 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-04-20 08:53:32 +0000 |
commit | 1d7f9e05ed2e0f30a708b581c165d8a30e4ecceb (patch) | |
tree | 839ef9e16c4dd1e38465d8657e31cc5363eb87f8 /include/text.php | |
parent | ba412bc6cf0110b089493ee8f9b65cda0487001f (diff) | |
parent | cd97c32444b617331aca135529b568374b9117e7 (diff) | |
download | volse-hubzilla-1d7f9e05ed2e0f30a708b581c165d8a30e4ecceb.tar.gz volse-hubzilla-1d7f9e05ed2e0f30a708b581c165d8a30e4ecceb.tar.bz2 volse-hubzilla-1d7f9e05ed2e0f30a708b581c165d8a30e4ecceb.zip |
Merge branch 'dev' into 'dev'
more PHP 8 fixes
See merge request hubzilla/core!1943
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 10 |
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'], |