forked from friendica/php-json-ld
Fix bug to remove warning with empty delimiter.
This commit is contained in:
parent
b0c1d0cfe8
commit
5cf9a5c133
|
@ -515,7 +515,7 @@ function jsonld_remove_base($base, $iri) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// IRI not relative to base
|
// IRI not relative to base
|
||||||
if(strpos($iri, $root) !== 0) {
|
if($root === '' || strpos($iri, $root) !== 0) {
|
||||||
return $iri;
|
return $iri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue