From b45f9a99c3ceb248e7f95d5914d275cffdab4900 Mon Sep 17 00:00:00 2001 From: Jeff Bierschbach Date: Thu, 8 Feb 2024 11:14:49 -0600 Subject: [PATCH] Fix Empty Child Folder Error --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 8027dc5..0218c23 100755 --- a/src/Client.php +++ b/src/Client.php @@ -585,7 +585,7 @@ public function getFolders(bool $hierarchical = true, string $parent_folder = nu if ($hierarchical && $folder->hasChildren()) { $pattern = $folder->full_name.$folder->delimiter.'%'; - $children = $this->getFolders(true, $pattern, $soft_fail); + $children = $this->getFolders(true, $pattern, true); $folder->setChildren($children); } @@ -631,7 +631,7 @@ public function getFoldersWithStatus(bool $hierarchical = true, string $parent_f if ($hierarchical && $folder->hasChildren()) { $pattern = $folder->full_name.$folder->delimiter.'%'; - $children = $this->getFoldersWithStatus(true, $pattern, $soft_fail); + $children = $this->getFoldersWithStatus(true, $pattern, true); $folder->setChildren($children); }