Fix bug to remove warning with empty delimiter.

pull/1/head
Dave Longley 10 years ago
parent b0c1d0cfe8
commit 5cf9a5c133

@ -515,7 +515,7 @@ function jsonld_remove_base($base, $iri) {
}
// IRI not relative to base
if(strpos($iri, $root) !== 0) {
if($root === '' || strpos($iri, $root) !== 0) {
return $iri;
}

Loading…
Cancel
Save