diff --git a/core/core.php b/core/core.php index 753f0ad0..d9eb6b44 100755 --- a/core/core.php +++ b/core/core.php @@ -587,7 +587,9 @@ class common { if ($sampleSite === true) { foreach(init::$siteContent as $key => $value) { // Creation du contenu de la page - file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value); + if (!empty($this->getData(['page', $key, 'content'])) ) { + file_put_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $key, 'content']), $value); + } } } else { // Créer la page d'accueil