make sure we are dealing with an array

This commit is contained in:
Mario
2024-01-14 09:40:18 +00:00
parent 9d3b852d38
commit e078e13325

View File

@@ -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' &&