// Refactoring of shop class with new context Part 2

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7617 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-07-13 12:52:09 +00:00
parent c5cc771f16
commit 67c80b2b42
21 changed files with 189 additions and 193 deletions
+3 -3
View File
@@ -58,14 +58,14 @@ class CompareControllerCore extends FrontController
foreach ($ids AS $k => &$id)
{
$curProduct = new Product((int)$id, true, (int)self::$cookie->id_lang,(int)$this->id_current_shop);
if (!$curProduct->active OR !$curProduct->isAssociatedToShop((int)$this->id_current_shop))
$curProduct = new Product((int)$id, true, (int)self::$cookie->id_lang);
if (!$curProduct->active OR !$curProduct->isAssociatedToShop())
{
unset($ids[$k]);
continue;
}
if (!$curProduct->active OR !$curProduct->isAssociatedToShop((int)$this->id_current_shop))
if (!$curProduct->active OR !$curProduct->isAssociatedToShop())
{
unset($ids[$k]);
continue;