Skip to content

Commit

Permalink
Merge pull request #6151 from earlyhost/patch-10
Browse files Browse the repository at this point in the history
Fixed broken `null` check for attachment thumbnail links
  • Loading branch information
dtdesign authored Jan 2, 2025
2 parents 0f6ba4e + ea64441 commit d0b84bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function getThumbnailLink($size = '')
}

$thumbnail = $file->getThumbnail($size !== 'tiny' ? '' : $size);
if ($this === null) {
if ($thumbnail === null) {
return '';
}

Expand Down

0 comments on commit d0b84bb

Please sign in to comment.