From 7406184f0056e35a8509e9b558e9803117d30b3a Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 8 Nov 2023 19:23:26 +0200 Subject: [PATCH] fix some of the filesystem checks were not working (executing their SQL queries) --- api/src/Vfs/Sqlfs/Utils.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/src/Vfs/Sqlfs/Utils.php b/api/src/Vfs/Sqlfs/Utils.php index 5ceb09ff93..f4084c5393 100644 --- a/api/src/Vfs/Sqlfs/Utils.php +++ b/api/src/Vfs/Sqlfs/Utils.php @@ -264,7 +264,8 @@ class Utils extends StreamWrapper do { $num = 0; $select_stmt->bindValue(':offset', $offset, PDO::PARAM_INT); - foreach($select_stmt->execute() as $row) + $select_stmt->execute(); + foreach($select_stmt as $row) { ++$num; if (!file_exists($phy_path=self::_fs_path($row['fs_id']))) @@ -340,7 +341,8 @@ class Utils extends StreamWrapper { $num = 0; $stmt->bindValue(':offset', $offset, PDO::PARAM_INT); - foreach ($stmt->execute() as $row) + $stmt->execute(); + foreach ($stmt as $row) { ++$num; if ($check_only)