diff --git a/src/Client.php b/src/Client.php index c4beecb9..5af56423 100755 --- a/src/Client.php +++ b/src/Client.php @@ -521,7 +521,7 @@ public function getFoldersWithStatus(bool $hierarchical = true, string $parent_f if ($hierarchical && $folder->hasChildren()) { $pattern = $folder->full_name.$folder->delimiter.'%'; - $children = $this->getFolders(true, $pattern); + $children = $this->getFoldersWithStatus(true, $pattern); $folder->setChildren($children); }