mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 05:11:42 +02:00
Strict fixes for e_tree_model::flattenTree()
- FIX: Null check during child recursion of e_tree_model::flattenTree() - FIX: TreeModelTest::testTreeParentsAreAssignedCorrectly() apparently never worked until now because the wrong index was used
This commit is contained in:
@@ -3519,7 +3519,7 @@ class e_tree_model extends e_front_model
|
||||
|
||||
foreach($tree as $item)
|
||||
{
|
||||
$children = $item['_children'];
|
||||
$children = isset($item['_children']) ? $item['_children'] : null;
|
||||
unset($item['_children']);
|
||||
$item['_depth'] = $depth;
|
||||
if($depth > 0)
|
||||
|
Reference in New Issue
Block a user