diff --git a/CHANGES.md b/CHANGES.md index 1445a4a3..2b649540 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changelog +## Version 13.2.02 + +Corrige un warning quand un module blog ou news ne contient pas d'article. + + ## Version 13.2.01 ### Correction diff --git a/LISEZMOI.md b/LISEZMOI.md index b133b417..e86574d0 100644 --- a/LISEZMOI.md +++ b/LISEZMOI.md @@ -1,4 +1,4 @@ -# ZwiiCMS 13.2.01 +# ZwiiCMS 13.2.02 Zwii est un CMS sans base de données (flat-file) qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation. diff --git a/README.md b/README.md index 008e607e..fddb0ebb 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ZwiiCMS 13.2.01 +# ZwiiCMS 13.2.02 Zwii is a database-less (flat-file) CMS that allows you to easily create and manage a web site without any programming knowledge. diff --git a/core/core.php b/core/core.php index 4ad06b58..432df3df 100644 --- a/core/core.php +++ b/core/core.php @@ -51,7 +51,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '13.2.01'; + const ZWII_VERSION = '13.2.02'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/cms-update/raw/branch/master/'; @@ -1119,8 +1119,9 @@ class common } // Articles du blog if ( - $this->getData(['page', $parentPageId, 'moduleId']) === 'blog' && - !empty($this->getData(['module', $parentPageId])) + $this->getData(['page', $parentPageId, 'moduleId']) === 'blog' + && !empty($this->getData(['module', $parentPageId])) + && $this->getData(['module', $parentPageId, 'posts']) ) { foreach ($this->getData(['module', $parentPageId, 'posts']) as $articleId => $article) { if ($this->getData(['module', $parentPageId, 'posts', $articleId, 'state']) === true) {