// Improve collections : where() method reworked (prototype changed) + validation of fields
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11383 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -79,9 +79,9 @@ class GroupShopCore extends ObjectModel
|
||||
public static function getGroupShops($active = true)
|
||||
{
|
||||
$groups = new Collection('GroupShop');
|
||||
$groups->where('deleted = 0');
|
||||
$groups->where('deleted', '=', false);
|
||||
if ($active)
|
||||
$groups->where('active = 1');
|
||||
$groups->where('active', '=', true);
|
||||
return $groups;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user