Do not compact to @language map when @index is present.

This commit is contained in:
Dave Longley 2013-02-18 10:33:18 -05:00
parent fda8545943
commit 5961e603aa

View file

@ -3886,7 +3886,8 @@ class JsonLdProcessor {
}
else {
if(self::_isValue($value)) {
if(property_exists($value, '@language')) {
if(property_exists($value, '@language') &&
!property_exists($value, '@index')) {
$containers[] = '@language';
$type_or_language_value = $value->{'@language'};
}