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