// Improve multishop code

This commit is contained in:
rMalie
2011-12-06 14:08:48 +00:00
parent 6d4a5ea9de
commit bfb7d79ba2
4 changed files with 29 additions and 15 deletions
+5 -5
View File
@@ -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()