aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-28 07:19:49 +0000
committerMario <mario@mariovavti.com>2021-05-28 07:19:49 +0000
commit30f258b3f9f51af3cfc66e3e7318ec506a2905d7 (patch)
tree3073bdc8fcdb201d67e289d80010654b833661d2 /Zotlabs/Lib
parentd06d22c7c96020fff4acb0030aa6b5b07ead351e (diff)
downloadvolse-hubzilla-30f258b3f9f51af3cfc66e3e7318ec506a2905d7.tar.gz
volse-hubzilla-30f258b3f9f51af3cfc66e3e7318ec506a2905d7.tar.bz2
volse-hubzilla-30f258b3f9f51af3cfc66e3e7318ec506a2905d7.zip
add check for type
Diffstat (limited to 'Zotlabs/Lib')
-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 a24c17815..41e394dbc 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -650,7 +650,7 @@ class Activity {
$atts = ((is_array($item['attach'])) ? $item['attach'] : json_decode($item['attach'], true));
if ($atts) {
foreach ($atts as $att) {
- if (strpos($att['type'], 'image')) {
+ if (isset($att['type']) && strpos($att['type'], 'image')) {
$ret[] = ['type' => 'Image', 'url' => $att['href']];
}
else {