Do not require a matching empty array when selecting a property generator.
This commit is contained in:
parent
31dafae2ec
commit
5a6f3bc5dd
1 changed files with 1 additions and 1 deletions
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue