summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-14 13:35:37 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-11 11:40:58 +0100
commit8890c88c119f9b1faaa6e60b3230561d8942973e (patch)
treef56094c2ee6764ac6864ab070b49cbd9b81d9cd2 /apps/files_trashbin
parent3e8a5f8a532c3fb68b570ddfcb1916abbe5d7bcb (diff)
downloadnextcloud-server-8890c88c119f9b1faaa6e60b3230561d8942973e.tar.gz
nextcloud-server-8890c88c119f9b1faaa6e60b3230561d8942973e.zip
handle not found in trash hook
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/trashbin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 874aceaad10..b2fb51226c1 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -62,7 +62,11 @@ class Trashbin {
* @param array $params
*/
public static function ensureFileScannedHook($params) {
- self::getUidAndFilename($params['path']);
+ try {
+ self::getUidAndFilename($params['path']);
+ } catch (NotFoundException $e) {
+ // nothing to scan for non existing files
+ }
}
/**