aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Trashbin.php
diff options
context:
space:
mode:
authorJosh Richards <josh.t.richards@gmail.com>2023-06-03 08:57:38 -0400
committeryemkareems <yemkareems@gmail.com>2024-11-13 09:11:17 +0530
commit1fc1543a8bcffa04f0c4d42ba2252409c8876041 (patch)
tree100e3e14795208077fc7e23245086e3b18cc2938 /apps/files_trashbin/lib/Trashbin.php
parent0da87f178f1db975a1c3f9212b99ac01f4bae874 (diff)
downloadnextcloud-server-1fc1543a8bcffa04f0c4d42ba2252409c8876041.tar.gz
nextcloud-server-1fc1543a8bcffa04f0c4d42ba2252409c8876041.zip
fix: Clean-up some remaining readdir calls with undesirable false evaluation potential
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Diffstat (limited to 'apps/files_trashbin/lib/Trashbin.php')
-rw-r--r--apps/files_trashbin/lib/Trashbin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index a8ecc363e64..fe16a3a9d69 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -1105,7 +1105,7 @@ class Trashbin {
public static function isEmpty($user) {
$view = new View('/' . $user . '/files_trashbin');
if ($view->is_dir('/files') && $dh = $view->opendir('/files')) {
- while ($file = readdir($dh)) {
+ while (($file = readdir($dh)) !== false) {
if (!Filesystem::isIgnoredDir($file)) {
return false;
}