Skip to content

Commit

Permalink
Fix error when file is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Lagarda committed Aug 21, 2020
1 parent ac91607 commit a13df2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilemanagerField.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public function resolveThumbnailUrl()

$data = $service->getFileInfoAsArray($this->value);

if ($data['type'] !== 'image' || empty($data)) {
if ((isset($data['type']) && $data['type'] !== 'image') || empty($data)) {
return;
}

Expand Down

0 comments on commit a13df2b

Please sign in to comment.