Skip to content

Commit

Permalink
Fixed broken null check for attachment thumbnail links
Browse files Browse the repository at this point in the history
  • Loading branch information
earlyhost authored Dec 28, 2024
1 parent 4f67b9c commit ea64441
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 ea64441

Please sign in to comment.