diff --git a/module/blog/blog.php b/module/blog/blog.php index c6fa2f3..260b422 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -16,7 +16,7 @@ class blog extends common { - const VERSION = '7.8'; + const VERSION = '7.9'; const REALNAME = 'Blog'; const DELETE = true; const UPDATE = '0.0'; @@ -198,7 +198,9 @@ class blog extends common // En-tête $feeds->setTitle($this->getData(['page', $this->getUrl(0), 'title']) ? $this->getData(['page', $this->getUrl(0), 'title']): ''); $feeds->setLink(helper::baseUrl() . $this->getUrl(0)); - $feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription']) ? $this->getData(['page', $this->getUrl(0), 'metaDescription']): ''); + if ($this->getData(['page', $this->getUrl(0), 'metaDescription'])) { + $feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription'])); + } $feeds->setChannelElement('language', 'fr-FR'); $feeds->setDate(date('r', time())); $feeds->addGenerator(); diff --git a/module/blog/changes.md b/module/blog/changes.md index b25646a..d16cc77 100755 --- a/module/blog/changes.md +++ b/module/blog/changes.md @@ -1,5 +1,5 @@ -# Version 7.8 +# Versions 7.8 - 7.9 - Le flux RSS ne fonctionne pas si les méta de la page sont vides. # Version 7.7 - Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts. diff --git a/module/news/changes.md b/module/news/changes.md index 192be02..3884393 100644 --- a/module/news/changes.md +++ b/module/news/changes.md @@ -1,4 +1,4 @@ -# Version 5.7 +# Versions 5.7 - 5.8 - Le flux RSS ne fonctionne pas si les méta de la page sont vides. # Version 5.6 - Contrôle de la variable de session liée au contenu. Evite des erreurs lorsque plusieurs onglets sont ouverts. diff --git a/module/news/news.php b/module/news/news.php index 63f582b..e34e49b 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -16,7 +16,7 @@ class news extends common { - const VERSION = '5.7'; + const VERSION = '5.8'; const REALNAME = 'News'; const DATADIRECTORY = self::DATA_DIR . 'news/'; @@ -126,7 +126,9 @@ class news extends common // En-tête $feeds->setTitle($this->getData(['page', $this->getUrl(0), 'title']) ? $this->getData(['page', $this->getUrl(0), 'title']): ''); $feeds->setLink(helper::baseUrl() . $this->getUrl(0)); - $feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription']) ? $this->getData(['page', $this->getUrl(0), 'metaDescription']): ''); + if ($this->getData(['page', $this->getUrl(0), 'metaDescription'])) { + $feeds->setDescription($this->getData(['page', $this->getUrl(0), 'metaDescription'])); + }; $feeds->setChannelElement('language', 'fr-FR'); $feeds->setDate(date('r', time())); $feeds->addGenerator();