Skip to content
Snippets Groups Projects
Commit 6b66b42f authored by Robin Appelman's avatar Robin Appelman
Browse files

catch the case where files_trashbin/files doesn't exist

parent 38b1529c
Branches
No related tags found
No related merge requests found
......@@ -922,6 +922,9 @@ class Trashbin {
$view = new \OC\Files\View('/' . $user . '/files_trashbin');
$dh = $view->opendir('/files');
if (!$dh) {
return false;
}
while ($file = readdir($dh)) {
if ($file !== '.' and $file !== '..') {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment