Passed nulls test.

This commit is contained in:
Dave Longley 2011-07-29 16:17:51 -04:00
parent dbd83f1535
commit a29ea93ffd

View file

@ -1314,7 +1314,11 @@ function _flatten($parent, $parentProperty, $value, $subjects)
{ {
$flattened = null; $flattened = null;
if(is_array($value)) if($value === null)
{
// drop null values
}
else if(is_array($value))
{ {
// list of objects or a disjoint graph // list of objects or a disjoint graph
foreach($value as $v) foreach($value as $v)