diff options
-rw-r--r-- | Zotlabs/Lib/Activity.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 6c680c56e..3da6e6e92 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -1757,12 +1757,14 @@ class Activity { } $epubkey = ''; - foreach($person_obj['assertionMethod'] as $am) { - if ($person_obj['id'] === $am['controller'] && - $am['type'] === 'Multikey' && - str_starts_with($am['publicKeyMultibase'], 'z6Mk') - ) { - $epubkey = $person_obj['assertionMethod']['publicKeyMultibase']; + if (isset($person_obj['assertionMethod'])) { + foreach($person_obj['assertionMethod'] as $am) { + if ($person_obj['id'] === $am['controller'] && + $am['type'] === 'Multikey' && + str_starts_with($am['publicKeyMultibase'], 'z6Mk') + ) { + $epubkey = $person_obj['assertionMethod']['publicKeyMultibase']; + } } } |