Skip to content

Commit

Permalink
$files length
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed Oct 1, 2024
1 parent 6a06417 commit f83bc9a
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 f83bc9a

Please sign in to comment.