diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-14 13:35:37 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-11 11:40:58 +0100 |
commit | 8890c88c119f9b1faaa6e60b3230561d8942973e (patch) | |
tree | f56094c2ee6764ac6864ab070b49cbd9b81d9cd2 /apps/files_trashbin | |
parent | 3e8a5f8a532c3fb68b570ddfcb1916abbe5d7bcb (diff) | |
download | nextcloud-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.php | 6 |
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 + } } /** |