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']),