diff options
author | Mario <mario@mariovavti.com> | 2024-01-14 09:40:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-14 09:40:18 +0000 |
commit | e078e133257aca1f1508382135ea342cc751c96d (patch) | |
tree | 912b53cc16e0807b99d24bd1c58db7ea3e44fcce /Zotlabs/Lib/Activity.php | |
parent | 9d3b852d380760fa6e05491df1fd9b1e02fdf7d2 (diff) | |
download | volse-hubzilla-e078e133257aca1f1508382135ea342cc751c96d.tar.gz volse-hubzilla-e078e133257aca1f1508382135ea342cc751c96d.tar.bz2 volse-hubzilla-e078e133257aca1f1508382135ea342cc751c96d.zip |
make sure we are dealing with an array
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 3da6e6e92..f59992cc3 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1758,6 +1758,10 @@ class Activity { $epubkey = ''; if (isset($person_obj['assertionMethod'])) { + if (!isset($person_obj['assertionMethod'][0])) { + $person_obj['assertionMethod'] = [$person_obj['assertionMethod']]; + } + foreach($person_obj['assertionMethod'] as $am) { if ($person_obj['id'] === $am['controller'] && $am['type'] === 'Multikey' && |