Merge pull request #5877 from annando/issue-5859

Issue 5859: Avoid returning empty arrays
This commit is contained in:
Hypolite Petovan 2018-10-10 15:23:39 -04:00 committed by GitHub
commit 67afa069ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class JsonLD
$elements[] = $entry;
} elseif (!empty($entry[$key])) {
$elements[] = $entry[$key];
} else {
} elseif (!empty($entry) || !is_array($entry)) {
$elements[] = $entry;
}
}