Skip to content

Commit

Permalink
Merge pull request #41 from utopia-php/fix-files-length
Browse files Browse the repository at this point in the history
Fix files array length
  • Loading branch information
christyjacob4 authored Oct 1, 2024
2 parents 6a06417 + f83bc9a commit 6ac8a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migration/Sources/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function report(array $resources = []): array
)['files'];

$files = array_merge($files, $currentFiles);
$lastFile = $files[count($files) - 1]['$id'];
$lastFile = $files[count($files) - 1]['$id'] ?? null;

if (count($currentFiles) < 20) {
break;
Expand Down

0 comments on commit 6ac8a01

Please sign in to comment.