aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 19:46:27 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 19:46:27 +0000
commitf62b294a72a3f0a9b482cadabc01669483992fc9 (patch)
tree17fafae0136e98379854c38ae1e91e5d8959c4c9
parentc2adf1dcd16c6bb71798141212e80310adf5a03d (diff)
downloadvolse-hubzilla-f62b294a72a3f0a9b482cadabc01669483992fc9.tar.gz
volse-hubzilla-f62b294a72a3f0a9b482cadabc01669483992fc9.tar.bz2
volse-hubzilla-f62b294a72a3f0a9b482cadabc01669483992fc9.zip
Check if terms are defined as array for item
-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 8df76b5bf..dcfd3896e 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -610,7 +610,7 @@ class Activity {
$ret = [];
- if ($item['term']) {
+ if (array_key_exists('term', $item) && is_array($item['term'])) {
foreach ($item['term'] as $t) {
switch ($t['ttype']) {
case TERM_HASHTAG: