diff --git a/core/core.php b/core/core.php index 0de4dd27..09ba21a8 100644 --- a/core/core.php +++ b/core/core.php @@ -1138,10 +1138,10 @@ class common { if ( $this->getdata(['module',$parent,$galleryKey,'config','position']) === NULL) { $this->setdata(['module',$parent,$galleryKey,'config','position',$i++]); } - } - // Image de couverture - if ( $this->getdata(['module',$parent,$galleryKey,'config','homePicture']) === NULL) { - $this->setdata(['module',$parent,$galleryKey,'config','homePicture','']); + // Image de couverture + if ( $this->getdata(['module',$parent,$galleryKey,'config','homePicture']) === NULL) { + $this->setdata(['module',$parent,$galleryKey,'config','homePicture','']); + } } } }