catch the case where files_trashbin/files doesn't exist

remotes/origin/ldap_group_count
Robin Appelman 11 years ago
parent 38b1529c2a
commit 6b66b42f6e
  1. 5
      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;
}
}

Loading…
Cancel
Save