From 043e2ff58bb98a8901d5c60bcfed9d380e395199 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 8 Mar 2024 09:23:31 +0000 Subject: check if term is set before processing it --- Zotlabs/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 29b99fab5..43f7386e7 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -2882,7 +2882,7 @@ class Activity { } } - if (!PConfig::Get($channel['channel_id'], 'system', 'no_smilies')) { + if (isset($item['term']) && !PConfig::Get($channel['channel_id'], 'system', 'no_smilies')) { foreach ($item['term'] as $t) { if ($t['ttype'] === TERM_EMOJI) { $item['body'] = str_replace($t['term'], '[img class="smiley emoji custom-emoji" alt="' . $t['term'] . '" title="' . $t['term'] . '"]' . $t['url'] . '[/img]', $item['body']); -- cgit v1.2.3