Also fix shortenedRecursiveExport for recursion-context changes

This commit is contained in:
Bob Weinand 2016-11-18 12:14:04 +01:00 committed by GitHub
parent ecbefe18c8
commit cd63c71ded
1 changed files with 2 additions and 1 deletions

View File

@ -61,9 +61,10 @@ class Exporter
$context = new Context;
}
$array = $data;
$context->add($data);
foreach ($data as $key => $value) {
foreach ($array as $key => $value) {
if (is_array($value)) {
if ($context->contains($data[$key]) !== false) {
$result[] = '*RECURSION*';