diff --git a/app/admin/common.php b/app/admin/common.php index 7134e6f6..e0665372 100644 --- a/app/admin/common.php +++ b/app/admin/common.php @@ -24,7 +24,7 @@ if (!function_exists('array_to_tree')) { if ($keep_pid === false) { unset($item[$with]); } - $children = array_to_tree($data, $item['id'], $with, $lv); + $children = array_to_tree($data, $item['id'], $with, $lv, $keep_pid); if ($children) { $item['children'] = $children; }