From c0e3a32be07bd2b42ddbfb4d00de036c62f761c3 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 5 Oct 2022 09:39:25 +0200 Subject: [PATCH] module meta description param null --- core/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.php b/core/core.php index a86ea65a..770a1aac 100644 --- a/core/core.php +++ b/core/core.php @@ -2922,7 +2922,7 @@ class core extends common $this->addOutput([ 'title' => $title, // Meta description = 160 premiers caractères de l'article - 'metaDescription' => $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'blog' && !empty($this->getUrl(1)) + 'metaDescription' => $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'blog' && !empty($this->getUrl(1)) && in_array($this->getUrl(1), $this->getData(['module'])) ? strip_tags(substr($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'content']), 0, 159)) : $this->getData(['page', $this->getUrl(0), 'metaDescription']), 'metaTitle' => $this->getData(['page', $this->getUrl(0), 'metaTitle']),