Fix bug to remove warning with empty delimiter.

This commit is contained in:
Dave Longley 2013-03-08 13:50:18 -05:00
parent b0c1d0cfe8
commit 5cf9a5c133

View file

@ -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;
}