summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-25 14:58:06 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-25 14:58:06 +0100
commit13904a7f8979a87492ac765e05017eb1e4b69588 (patch)
tree429aa86e70120cad4e75012031f934d4f7e11620 /apps
parente188f0e4368ad1b34ecc35fcafa277f0e3946c01 (diff)
parentf8f543945f648a2ae2e5317393f787efe41e5c69 (diff)
downloadnextcloud-server-13904a7f8979a87492ac765e05017eb1e4b69588.tar.gz
nextcloud-server-13904a7f8979a87492ac765e05017eb1e4b69588.zip
Merge pull request #15179 from owncloud/trash-recreatetrashfolderafterfulldelete
Recreate trashbin folder after full deletion
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/trashbin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 6a7636a46f2..b2a3478f6fa 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -508,6 +508,8 @@ class Trashbin {
$view->deleteAll('files_trashbin');
$query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trash` WHERE `user`=?');
$query->execute(array($user));
+ $view->mkdir('files_trashbin');
+ $view->mkdir('files_trashbin/files');
return true;
}