aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Common.php
diff options
context:
space:
mode:
authorJosh Richards <josh.t.richards@gmail.com>2023-06-03 08:57:38 -0400
committerSimon L <szaimen@e.mail.de>2023-06-24 15:37:06 +0200
commite7cbaf3ee323c9187356300012c8cfb3879b0349 (patch)
tree46422c9c829cb0ea5ed207e9b29587d278ace452 /lib/private/Files/Storage/Common.php
parent99cbf778f31a543889edcc709dbc9e8c9361e5f5 (diff)
downloadnextcloud-server-e7cbaf3ee323c9187356300012c8cfb3879b0349.tar.gz
nextcloud-server-e7cbaf3ee323c9187356300012c8cfb3879b0349.zip
Clean-up some remaining readdir calls with undesirable false evaluation potential
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r--lib/private/Files/Storage/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php
index 5ab411434d0..15fe788a821 100644
--- a/lib/private/Files/Storage/Common.php
+++ b/lib/private/Files/Storage/Common.php
@@ -228,7 +228,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage {
$this->remove($target);
$dir = $this->opendir($source);
$this->mkdir($target);
- while ($file = readdir($dir)) {
+ while (($file = readdir($dir)) !== false) {
if (!Filesystem::isIgnoredDir($file)) {
if (!$this->copy($source . '/' . $file, $target . '/' . $file)) {
closedir($dir);