From 6810f94673e5f7c224595bae327eb2c00b7e7c0c Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Fri, 29 Jul 2011 14:38:06 -0400 Subject: [PATCH] Changed framing so null will not be auto-included in arrays. --- jsonld.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonld.php b/jsonld.php index befb6f8..87b5abb 100644 --- a/jsonld.php +++ b/jsonld.php @@ -2672,10 +2672,10 @@ function _frame($subjects, $input, $frame, $embeds, $options) { if($v === null) { - if(!$omitOn) + // do not auto-include null in arrays + if(!$omitOn and property_exists($f, '$default')) { - $tmp[] = property_exists($f, '$default') ? - $f->{'$default'} : null; + $tmp[] = $f->{'$default'}; } } else