diff options
author | Max Kostikov <max@kostikov.co> | 2021-04-18 21:25:32 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-04-18 21:25:32 +0200 |
commit | cd97c32444b617331aca135529b568374b9117e7 (patch) | |
tree | ff118e60e4054ba27880667e1724f7bb7c04f34f /include/text.php | |
parent | d2f1edfad841a186b796e7d468bd1454f6c19f68 (diff) | |
download | volse-hubzilla-cd97c32444b617331aca135529b568374b9117e7.tar.gz volse-hubzilla-cd97c32444b617331aca135529b568374b9117e7.tar.bz2 volse-hubzilla-cd97c32444b617331aca135529b568374b9117e7.zip |
more PHP 8 fixes
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'], |