aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-12-17 09:33:08 +0000
committerMario <mario@mariovavti.com>2019-12-17 09:33:08 +0000
commit3d019fa2dd6bddb9c93f64d8c91de96e40ced46e (patch)
treed2c8145000e5be519df82f38e91d64c0ab9851c2
parent230f7ab6d48b6af3bbc41147c3ef753e4d1e3051 (diff)
parentd5aeb136019a5f9e4a71c8353ab13c3195782e0b (diff)
downloadvolse-hubzilla-3d019fa2dd6bddb9c93f64d8c91de96e40ced46e.tar.gz
volse-hubzilla-3d019fa2dd6bddb9c93f64d8c91de96e40ced46e.tar.bz2
volse-hubzilla-3d019fa2dd6bddb9c93f64d8c91de96e40ced46e.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
-rw-r--r--Zotlabs/Widget/Pinned.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php
index 3324206f4..0a7806908 100644
--- a/Zotlabs/Widget/Pinned.php
+++ b/Zotlabs/Widget/Pinned.php
@@ -267,8 +267,8 @@ class Pinned {
$author = q("SELECT * FROM xchan WHERE xchan_hash = '%s' LIMIT 1",
dbesc($rr['author_xchan'])
);
- $name = ($author[0]['xchan_name'] ? $author[0]['xchan_name'] : t('Unknown'));
- $conv_responses[$verb]['list'][] = (($rr['author_xchan'] && $author[0]['xchan_photo_s']) ?
+ $name = (($author && $author[0]['xchan_name']) ? $author[0]['xchan_name'] : t('Unknown'));
+ $conv_responses[$verb]['list'][] = (($rr['author_xchan'] && $author && $author[0]['xchan_photo_s']) ?
'<a class="dropdown-item" href="' . chanlink_hash($rr['author_xchan']) . '">' . '<img class="menu-img-1" src="' . zid($author[0]['xchan_photo_s']) . '" alt="' . urlencode($name) . '" /> ' . $name . '</a>' :
'<a class="dropdown-item" href="#" class="disabled">' . $name . '</a>'
);