Skip to content

Commit eedbcb0

Browse files
authored
Merge pull request #44 from sebastiansommer/master
[FtpClient] added check for chunk that doesn't exist
2 parents d446640 + 7609f4c commit eedbcb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FtpClient/FtpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ public function parseRawList(array $rawlist)
861861
'type' => $this->rawToType($chunks[0]),
862862
];
863863

864-
if ($item['type'] == 'link') {
864+
if ($item['type'] == 'link' && isset($chunks[10])) {
865865
$item['target'] = $chunks[10]; // 9 is "->"
866866
}
867867

0 commit comments

Comments
 (0)