Use array to add compacted item when expanded property is @list.

This commit is contained in:
Dave Longley 2013-02-11 11:01:05 -05:00
parent 1b676e47fe
commit 42903065d9
1 changed files with 1 additions and 0 deletions

View File

@ -1609,6 +1609,7 @@ class JsonLdProcessor {
// array, or key is @graph
$is_array = ($container === '@set' || $container === '@list' ||
(is_array($compacted_item) && count($compacted_item) === 0) ||
$expanded_property === '@list' ||
$expanded_property === '@graph');
// add compact value