program/include/rcube_result_thread.php | ●●●●● patch | view | raw | blame | history |
program/include/rcube_result_thread.php
@@ -553,12 +553,14 @@ private function buildThreadData($data, &$depth, &$children, $level = 0) { foreach ((array)$data as $key => $val) { $children[$key] = !empty($val); $empty = empty($val) || !is_array($val); $children[$key] = !$empty; $depth[$key] = $level; if (!empty($val)) if (!$empty) { $this->buildThreadData($val, $depth, $children, $level + 1); } } } /**