mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
Avoiding some notices
This commit is contained in:
parent
0760b41fac
commit
c1dec50248
3 changed files with 6 additions and 3 deletions
|
@ -95,7 +95,7 @@ class JsonLD
|
|||
|
||||
// Workaround for Nextcloud Social
|
||||
// See issue https://github.com/nextcloud/social/issues/330
|
||||
if (is_array($json['@context'])) {
|
||||
if (!empty($json['@context']) && is_array($json['@context'])) {
|
||||
$json['@context'][] = 'https://w3id.org/security/v1';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue