Skip to content

Commit

Permalink
Merge pull request #19 from TD-ellguthe/master
Browse files Browse the repository at this point in the history
Fix deprecation warnings
  • Loading branch information
Mardl authored Aug 28, 2023
2 parents f806ce5 + 99cd4be commit ee670ad
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 ee670ad

Please sign in to comment.