Passed nulls test.
This commit is contained in:
parent
dbd83f1535
commit
a29ea93ffd
1 changed files with 5 additions and 1 deletions
|
@ -1314,7 +1314,11 @@ function _flatten($parent, $parentProperty, $value, $subjects)
|
|||
{
|
||||
$flattened = null;
|
||||
|
||||
if(is_array($value))
|
||||
if($value === null)
|
||||
{
|
||||
// drop null values
|
||||
}
|
||||
else if(is_array($value))
|
||||
{
|
||||
// list of objects or a disjoint graph
|
||||
foreach($value as $v)
|
||||
|
|
Loading…
Reference in a new issue