aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 19:50:55 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 19:50:55 +0000
commit4bcd093befaf5a1b4ee483e5d324bac1c6e57f2d (patch)
tree71c2f765067d7f4c925c7164f6b12bb32edf5642 /Zotlabs/Lib/Activity.php
parentf62b294a72a3f0a9b482cadabc01669483992fc9 (diff)
downloadvolse-hubzilla-4bcd093befaf5a1b4ee483e5d324bac1c6e57f2d.tar.gz
volse-hubzilla-4bcd093befaf5a1b4ee483e5d324bac1c6e57f2d.tar.bz2
volse-hubzilla-4bcd093befaf5a1b4ee483e5d324bac1c6e57f2d.zip
Check for attachments in item
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index dcfd3896e..1963090cf 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -698,7 +698,7 @@ class Activity {
$ret = [];
- if ($item['attachment']) {
+ if (array_key_exists('attachment', $item) && is_array($item['attachment'])) {
foreach ($item['attachment'] as $att) {
$entry = [];
if ($att['href'])