// Small fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17397 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-09-17 14:49:05 +00:00
parent 293245e89c
commit b36247f993
+2
View File
@@ -911,6 +911,8 @@ class ShopCore extends ObjectModel
$sql .= ' AND '.$table_alias.'.id_shop = '.(int)self::$context_id_shop;
elseif (Shop::checkIdShopDefault($table))
$sql .= ' AND '.$table_alias.'.id_shop = '.$alias.'.id_shop_default';
else
$sql .= ' AND '.$table_alias.'.id_shop IN ('.implode(', ', Shop::getContextListShopID()).')';
$sql .= (($on) ? ' AND '.$on : '').')';
return $sql;
}