summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/command/expire.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/command/expire.php')
-rw-r--r--apps/files_trashbin/command/expire.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_trashbin/command/expire.php b/apps/files_trashbin/command/expire.php
index e617fa47c90..e7dd5c573c2 100644
--- a/apps/files_trashbin/command/expire.php
+++ b/apps/files_trashbin/command/expire.php
@@ -49,6 +49,12 @@ class Expire implements ICommand {
}
public function handle() {
+ $userManager = \OC::$server->getUserManager();
+ if (!$userManager->userExists($this->user)) {
+ // User has been deleted already
+ return;
+ }
+
\OC_Util::tearDownFS();
\OC_Util::setupFS($this->user);
Trashbin::expire($this->trashBinSize, $this->user);