From 99cd4be80c22a0f2046828b439d34ab28a757a7b Mon Sep 17 00:00:00 2001 From: Enrico Ellguth Date: Wed, 23 Aug 2023 12:06:27 +0200 Subject: [PATCH] fix deprecation warning --- Block/SchemaOrg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Block/SchemaOrg.php b/Block/SchemaOrg.php index 2b4abae..4fd1b37 100644 --- a/Block/SchemaOrg.php +++ b/Block/SchemaOrg.php @@ -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') ?? ''); } }