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
1 changed files with 1 additions and 1 deletions

View File

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