Skip to content

Commit 782d8db

Browse files
committed
Prevent error when index doesn't exist
1 parent 1c1bc15 commit 782d8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Images.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function imagesParse($column = null, $index = null, $array = false)
3333
}
3434
return $array;
3535
}
36-
return $index !== null ? explode('|', trim($images[$index]), 2) : $images;
36+
return $index !== null ? explode('|', trim($images[$index] ?? null), 2) : $images;
3737
}
3838

3939
public function image($column = null, $index = 0)

0 commit comments

Comments
 (0)