summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-05 11:31:49 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-06-05 11:31:49 +0200
commit4e24486a89088d0053633f1f91739649c4f4ffda (patch)
tree522a3d7b69592a0137f137d297b83ba49e87ee33 /apps/files_versions
parent3d289a58cd77fc1921d343313caf84c22e292d7b (diff)
downloadnextcloud-server-4e24486a89088d0053633f1f91739649c4f4ffda.tar.gz
nextcloud-server-4e24486a89088d0053633f1f91739649c4f4ffda.zip
Check whether the user exists before trying to set up his file system
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/command/expire.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_versions/command/expire.php b/apps/files_versions/command/expire.php
index 6cec9f4fac3..ec9aa3e80d3 100644
--- a/apps/files_versions/command/expire.php
+++ b/apps/files_versions/command/expire.php
@@ -50,6 +50,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::setupFS($this->user);
Storage::expire($this->fileName, $this->versionsSize, $this->neededSpace);
\OC_Util::tearDownFS();