[-] MO : HomeSlider

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8249 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-08-30 13:24:06 +00:00
parent 76f7326832
commit 375e0a4f6d
+2 -2
View File
@@ -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.')'