Catch NotFoundException when getting the user folder
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
a19f3536bc
commit
7df5e37750
|
@ -53,10 +53,9 @@ class UploadCleanup extends TimedJob {
|
||||||
$uid = $argument['uid'];
|
$uid = $argument['uid'];
|
||||||
$folder = $argument['folder'];
|
$folder = $argument['folder'];
|
||||||
|
|
||||||
$userFolder = $this->rootFolder->getUserFolder($uid);
|
|
||||||
$userRoot = $userFolder->getParent();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
$userFolder = $this->rootFolder->getUserFolder($uid);
|
||||||
|
$userRoot = $userFolder->getParent();
|
||||||
/** @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