Do not require a matching empty array when selecting a property generator.

This commit is contained in:
Dave Longley 2013-02-10 14:40:14 -05:00
parent 31dafae2ec
commit 5a6f3bc5dd

View file

@ -3986,7 +3986,7 @@ class JsonLdProcessor {
$length = count($element->{$iri}); $length = count($element->{$iri});
// handle empty array case // handle empty array case
if($length === 0 && is_array($value) && count($value) === 0) { if(is_array($value) && count($value) === 0) {
$rval = true; $rval = true;
if($remove) { if($remove) {
unset($element->{$iri}); unset($element->{$iri});