AP: Parsing of messages from Pleroma should work now again

This commit is contained in:
Michael 2019-04-26 06:17:37 +00:00
parent dc154ac07d
commit eef85584c2
4 changed files with 43 additions and 39 deletions

View file

@ -165,7 +165,7 @@ class JsonLD
foreach ($array[$element] as $entry) {
if (!is_array($entry)) {
$elements[] = $entry;
} elseif (!empty($entry[$key])) {
} elseif (isset($entry[$key])) {
$elements[] = $entry[$key];
} elseif (!empty($entry) || !is_array($entry)) {
$elements[] = $entry;