fix(FileAccess): Try to fix type error

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2025-09-18 12:54:39 +02:00 committed by backportbot[bot]
parent 0a1754beaf
commit 38f2bf6f98

View file

@ -152,8 +152,9 @@ class FileAccess implements IFileAccess {
$rows = [];
$i = 0;
do {
while (($rows[] = $files->fetch()) && $i < 1000) {
while ($i < 1000 && ($row = $files->fetch())) {
$i++;
$rows[] = $row;
}
$parents = array_map(function ($row) {
return $row['parent'];