Merge pull request #5877 from annando/issue-5859
Issue 5859: Avoid returning empty arrays
This commit is contained in:
commit
67afa069ab
|
@ -128,7 +128,7 @@ class JsonLD
|
|||
$elements[] = $entry;
|
||||
} elseif (!empty($entry[$key])) {
|
||||
$elements[] = $entry[$key];
|
||||
} else {
|
||||
} elseif (!empty($entry) || !is_array($entry)) {
|
||||
$elements[] = $entry;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user