forked from friendica/php-json-ld
Do not require a matching empty array when selecting a property generator.
This commit is contained in:
parent
31dafae2ec
commit
5a6f3bc5dd
|
@ -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});
|
||||||
|
|
Loading…
Reference in a new issue