Fix list term check.

This commit is contained in:
Dave Longley 2012-06-30 21:36:03 -04:00
parent 084c9e4db1
commit 5299404f62

View file

@ -3029,7 +3029,8 @@ class JsonLdProcessor {
continue;
}
// skip @list containers for non-@lists
if(!$is_list && $has_container && $entry->{'@container'} === '@list') {
if(!$is_list && $has_container && $entry->{'@container'} === '@list' &&
$value !== null) {
continue;
}
// for @lists, if list_container is set, skip non-list containers