diff --git a/core/core.php b/core/core.php index 4763cbfa..038c3b96 100755 --- a/core/core.php +++ b/core/core.php @@ -1197,9 +1197,9 @@ class common { $this->setdata(['module',$parent,$galleryKey,'config','position',$i++]); } // Positions des images, tri manuel - if ( $this->getdata(['module',$parent,$galleryKey,'position']) === NULL) { + if ( $this->getdata(['module',$parent,$galleryKey,'positions']) === NULL) { $c = count($this->getdata(['module',$parent,$galleryKey,'legend'])); - $this->setdata(['module',$parent,$galleryKey,'position', range(0,$c-1) ]); + $this->setdata(['module',$parent,$galleryKey,'positions', range(0,$c-1) ]); } // Image de couverture if ( $this->getdata(['module',$parent,$galleryKey,'config','homePicture']) === NULL) {