summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_trashbin/lib/trashbin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 62879b0ca85..7b14a4ec081 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -922,8 +922,11 @@ 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 !== '..'){
+ if ($file !== '.' and $file !== '..') {
return false;
}
}