Skip to content

Commit

Permalink
Fix potential type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sprankhub authored Nov 4, 2024
1 parent 697a65f commit e76f411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/ResourceModel/Tooltip.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function loadAttributeDefaultTooltip(int $attributeId): string
);

$defaultTooltip = $connection->fetchOne($select, $bind);
if ($defaultTooltip === false) {
if ($defaultTooltip === false || $defaultTooltip === null) {
return '';
}

Expand Down

0 comments on commit e76f411

Please sign in to comment.