forked from friendica/php-json-ld
Return keywords immediately when expanding.
This commit is contained in:
parent
8bad8e2d24
commit
f0746b22c0
|
@ -4533,9 +4533,9 @@ class JsonLdProcessor {
|
|||
*/
|
||||
function _expandIri(
|
||||
$active_ctx, $value, $relative_to=array(), $local_ctx=null, $defined=null) {
|
||||
// nothing to expand
|
||||
if($value === null) {
|
||||
return null;
|
||||
// already expanded
|
||||
if($value === null || self::_isKeyword($value)) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
// define term dependency if not defined
|
||||
|
|
Loading…
Reference in a new issue