forked from friendica/php-json-ld
Check for subject references within lists.
This commit is contained in:
parent
5a6f3bc5dd
commit
1dab2c9987
|
@ -3736,6 +3736,9 @@ class JsonLdProcessor {
|
||||||
$item_language = '@null';
|
$item_language = '@null';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(is_object($value)) {
|
||||||
|
$item_type = '@id';
|
||||||
|
}
|
||||||
if($common_language === null) {
|
if($common_language === null) {
|
||||||
$common_language = $item_language;
|
$common_language = $item_language;
|
||||||
}
|
}
|
||||||
|
@ -3780,7 +3783,7 @@ class JsonLdProcessor {
|
||||||
$type_or_language_value = $value->{'@type'};
|
$type_or_language_value = $value->{'@type'};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if(is_object($value)) {
|
||||||
$type_or_language = '@type';
|
$type_or_language = '@type';
|
||||||
$type_or_language_value = '@id';
|
$type_or_language_value = '@id';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue