catch the case where files_trashbin/files doesn't exist
This commit is contained in:
parent
38b1529c2a
commit
6b66b42f6e
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue