From 5a6f3bc5dd742ee5e53aea5d528bb84d879b820f Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Sun, 10 Feb 2013 14:40:14 -0500 Subject: [PATCH] Do not require a matching empty array when selecting a property generator. --- jsonld.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonld.php b/jsonld.php index 20f9b98..6951a51 100644 --- a/jsonld.php +++ b/jsonld.php @@ -3986,7 +3986,7 @@ class JsonLdProcessor { $length = count($element->{$iri}); // handle empty array case - if($length === 0 && is_array($value) && count($value) === 0) { + if(is_array($value) && count($value) === 0) { $rval = true; if($remove) { unset($element->{$iri});