diff options
Diffstat (limited to 'codebase/strategy.php')
-rw-r--r-- | codebase/strategy.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/codebase/strategy.php b/codebase/strategy.php index eb579b8..e81e55a 100644 --- a/codebase/strategy.php +++ b/codebase/strategy.php @@ -130,7 +130,9 @@ class JSONRenderStrategy extends RenderStrategy { if ($data->get_id()===false) $data->set_id($conn->uuid()); $conn->event->trigger("beforeRender",$data); - $output[]=$data->to_xml(); + $item = $data->to_xml(); + if ($item !== false) + $output[]=$item; $index++; } $this->unmix($config, $mix); @@ -223,7 +225,8 @@ class JSONTreeRenderStrategy extends TreeRenderStrategy { if (sizeof($temp)) $record["data"] = $temp; } - $output[] = $record; + if ($record !== false) + $output[] = $record; $index++; } $this->unmix($config, $mix); |