diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-25 14:58:06 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-25 14:58:06 +0100 |
commit | 13904a7f8979a87492ac765e05017eb1e4b69588 (patch) | |
tree | 429aa86e70120cad4e75012031f934d4f7e11620 /apps | |
parent | e188f0e4368ad1b34ecc35fcafa277f0e3946c01 (diff) | |
parent | f8f543945f648a2ae2e5317393f787efe41e5c69 (diff) | |
download | nextcloud-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.php | 2 |
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; } |