diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-02-25 20:46:41 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-03-10 15:13:28 +0100 |
commit | eab844e2267a2955711f9d426c47eedeeea2d479 (patch) | |
tree | 31efab64fb3a949ba4c57ba7c04e75349f7c9d2f /apps/files_trashbin/ajax | |
parent | 9b4af31bac977cb788a6f4a013d32ba0a21437f0 (diff) | |
download | nextcloud-server-eab844e2267a2955711f9d426c47eedeeea2d479.tar.gz nextcloud-server-eab844e2267a2955711f9d426c47eedeeea2d479.zip |
if file is not in db, fall back to restore file to the users root
Diffstat (limited to 'apps/files_trashbin/ajax')
-rw-r--r-- | apps/files_trashbin/ajax/list.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_trashbin/ajax/list.php b/apps/files_trashbin/ajax/list.php index c9dc13b7840..124a236bcbd 100644 --- a/apps/files_trashbin/ajax/list.php +++ b/apps/files_trashbin/ajax/list.php @@ -26,9 +26,9 @@ if($doBreadcrumb) { } // make filelist -$files = \OCA\Files_Trashbin\Helper::getTrashFiles($dir); - -if ($files === null){ +try { + $files = \OCA\Files_Trashbin\Helper::getTrashFiles($dir); +} catch (Exception $e) { header("HTTP/1.0 404 Not Found"); exit(); } |