From 2b4b409c01b29c38fcc4213cd9a2444f3312e0b5 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 20 Feb 2025 11:27:46 +0000 Subject: make sure attachment is an array --- Zotlabs/Lib/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 2db0c6c12..ae4cc02c6 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -803,7 +803,7 @@ class Activity { $ret = []; - if (isset($item['attachment'])) { + if (isset($item['attachment']) && is_array($item['attachment'])) { $ptr = $item['attachment']; if (!array_key_exists(0, $ptr)) { $ptr = [$ptr]; -- cgit v1.2.3