Changed framing so null will not be auto-included in arrays.
This commit is contained in:
parent
5d03e650ec
commit
6810f94673
|
@ -2672,10 +2672,10 @@ function _frame($subjects, $input, $frame, $embeds, $options)
|
||||||
{
|
{
|
||||||
if($v === null)
|
if($v === null)
|
||||||
{
|
{
|
||||||
if(!$omitOn)
|
// do not auto-include null in arrays
|
||||||
|
if(!$omitOn and property_exists($f, '$default'))
|
||||||
{
|
{
|
||||||
$tmp[] = property_exists($f, '$default') ?
|
$tmp[] = $f->{'$default'};
|
||||||
$f->{'$default'} : null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue