// Improve multishop code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10982 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -77,11 +77,11 @@ class GroupShopCore extends ObjectModel
|
||||
|
||||
public static function getGroupShops($active = true)
|
||||
{
|
||||
return Db::getInstance()->executeS('
|
||||
SELECT *
|
||||
FROM '._DB_PREFIX_.'group_shop
|
||||
WHERE `deleted`= 0 AND `active`='.(int)$active
|
||||
);
|
||||
$groups = new Collection('GroupShop');
|
||||
$groups->where('deleted = 0');
|
||||
if ($active)
|
||||
$groups->where('active = 1');
|
||||
return $groups;
|
||||
}
|
||||
|
||||
public function delete()
|
||||
|
||||
Reference in New Issue
Block a user