There was an error while loading. Please reload this page.
2 parents 4afadf9 + 34e255d commit 1f8e645Copy full SHA for 1f8e645
1 file changed
apps/files_trashbin/lib/BackgroundJob/ExpireTrash.php
@@ -90,7 +90,7 @@ private function getTrashRoot(IUser $user): Folder {
90
$this->setupManager->tearDown();
91
$this->setupManager->setupForUser($user);
92
93
- $folder = $this->rootFolder->getUserFolder($user->getUID())->getParent()->get('files_trashbin');
+ $folder = $this->rootFolder->getUserFolder($user->getUID())->getParent()->getOrCreateFolder('files_trashbin');
94
if (!$folder instanceof Folder) {
95
throw new \LogicException("Didn't expect files_trashbin to be a file instead of a folder");
96
}
0 commit comments