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

View file

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