From 5cf9a5c1330d7d8201d181c35933424c8302301d Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Fri, 8 Mar 2013 13:50:18 -0500 Subject: [PATCH] Fix bug to remove warning with empty delimiter. --- jsonld.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonld.php b/jsonld.php index e614852..60d18b0 100644 --- a/jsonld.php +++ b/jsonld.php @@ -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; }