diff options
author | Mario <mario@mariovavti.com> | 2025-03-03 08:56:30 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-03-03 08:56:30 +0000 |
commit | ee988edc83ab8e2ea3679535044c0e5398cc3909 (patch) | |
tree | f92898fc49c31097cc2340b4bc0a9ca560cdab81 | |
parent | 7579749adcf24a37406a5e07d70565b1aaecf14f (diff) | |
download | volse-hubzilla-ee988edc83ab8e2ea3679535044c0e5398cc3909.tar.gz volse-hubzilla-ee988edc83ab8e2ea3679535044c0e5398cc3909.tar.bz2 volse-hubzilla-ee988edc83ab8e2ea3679535044c0e5398cc3909.zip |
make sure attachment is an array
(cherry picked from commit 2b4b409c01b29c38fcc4213cd9a2444f3312e0b5)
Co-authored-by: Mario <mario@mariovavti.com>
-rw-r--r-- | Zotlabs/Lib/Activity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 10df11174..febe57e0e 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -802,7 +802,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]; |