Merge pull request #20337 from nextcloud/backport/19655/stable16
[stable16] Catch NotFoundException when getting the user folder
This commit is contained in:
commit
9ec55abffc
|
@ -53,10 +53,9 @@ class UploadCleanup extends TimedJob {
|
||||||
$uid = $argument['uid'];
|
$uid = $argument['uid'];
|
||||||
$folder = $argument['folder'];
|
$folder = $argument['folder'];
|
||||||
|
|
||||||
|
try {
|
||||||
$userFolder = $this->rootFolder->getUserFolder($uid);
|
$userFolder = $this->rootFolder->getUserFolder($uid);
|
||||||
$userRoot = $userFolder->getParent();
|
$userRoot = $userFolder->getParent();
|
||||||
|
|
||||||
try {
|
|
||||||
/** @var Folder $uploads */
|
/** @var Folder $uploads */
|
||||||
$uploads = $userRoot->get('uploads');
|
$uploads = $userRoot->get('uploads');
|
||||||
/** @var Folder $uploadFolder */
|
/** @var Folder $uploadFolder */
|
||||||
|
|
Loading…
Reference in New Issue