diff --git a/modules/homeslider/HomeSlide.php b/modules/homeslider/HomeSlide.php index c1d1d6fb6..68bee5a2e 100644 --- a/modules/homeslider/HomeSlide.php +++ b/modules/homeslider/HomeSlide.php @@ -90,12 +90,12 @@ class HomeSlide extends ObjectModel parent::__construct($id_slide, $id_lang, $id_shop); } - public function add() + public function add($autodate = true, $nullValues = false) { $context = Context::getContext(); $id_shop = $context->shop->getID(); - $res = parent::add(); + $res = parent::add($autodate, $nullValues); $res &= Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute(' INSERT INTO `'._DB_PREFIX_.'homeslider` (`id_shop`, `id_slide`) VALUES('.(int)$id_shop.', '.(int)$this->id.')'