mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
make sure we are dealing with an array
This commit is contained in:
@@ -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' &&
|
||||
|
||||
Reference in New Issue
Block a user