aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-03 17:17:06 +0100
committerMax Kostikov <max@kostikov.co>2019-12-03 17:17:06 +0100
commit135b3cf1ef077051f78a26520ab143407f5d4577 (patch)
tree988da05c3a74e741667eea4a8cc81f86b3f3f092 /Zotlabs/Widget
parentb9e083da61dedcdf5dd9ff818c442e42734a02fc (diff)
downloadvolse-hubzilla-135b3cf1ef077051f78a26520ab143407f5d4577.tar.gz
volse-hubzilla-135b3cf1ef077051f78a26520ab143407f5d4577.tar.bz2
volse-hubzilla-135b3cf1ef077051f78a26520ab143407f5d4577.zip
Fix hide pinned post button for unauthenticated viewer
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Pinned.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php
index 271541812..7fbda0d5f 100644
--- a/Zotlabs/Widget/Pinned.php
+++ b/Zotlabs/Widget/Pinned.php
@@ -154,7 +154,7 @@ class Pinned {
'embed' => $embed,
'plink' => get_plink($item),
'pinned' => t('Pinned post'),
- 'hide' => (! $is_new && ($observer['xchan_hash'] != $owner['xchan_hash']) ? t("Don't show") : ''),
+ 'hide' => (! $is_new && $observer && ($observer['xchan_hash'] != $owner['xchan_hash']) ? t("Don't show") : ''),
// end toolbar buttons
'modal_dismiss' => t('Close'),
'responses' => $conv_responses