Skip to content

Commit

Permalink
fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-ellguthe committed Aug 23, 2023
1 parent f806ce5 commit 99cd4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Block/SchemaOrg.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ protected function getLogo()
protected function getDescription()
{
if ($this->helper->getDescriptionType()) {
return nl2br($this->getProduct()->getData('description'));
return nl2br($this->getProduct()->getData('description') ?? '');
} else {
return nl2br($this->getProduct()->getData('short_description'));
return nl2br($this->getProduct()->getData('short_description') ?? '');
}
}

Expand Down

0 comments on commit 99cd4be

Please sign in to comment.