// oops
This commit is contained in:
+6
-2
@@ -369,6 +369,8 @@ class ShopCore extends ObjectModel
|
|||||||
self::$shops[$row['id_group_shop']] = array(
|
self::$shops[$row['id_group_shop']] = array(
|
||||||
'id' => $row['id_group_shop'],
|
'id' => $row['id_group_shop'],
|
||||||
'name' => $row['group_name'],
|
'name' => $row['group_name'],
|
||||||
|
'share_customer' => $row['share_customer'],
|
||||||
|
'share_order' => $row['share_order'],
|
||||||
'share_stock' => $row['share_stock'],
|
'share_stock' => $row['share_stock'],
|
||||||
'shops' => array(),
|
'shops' => array(),
|
||||||
);
|
);
|
||||||
@@ -478,6 +480,9 @@ class ShopCore extends ObjectModel
|
|||||||
die('Wrong argument ($type) in Shop::getSharedShops() method');
|
die('Wrong argument ($type) in Shop::getSharedShops() method');
|
||||||
|
|
||||||
Shop::cacheShops();
|
Shop::cacheShops();
|
||||||
|
foreach (self::$shops as $groupData)
|
||||||
|
if (array_key_exists($shopID, $groupData['shops']) && $groupData[$type])
|
||||||
|
return array_keys($groupData['shops']);
|
||||||
return array($shopID);
|
return array($shopID);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -741,5 +746,4 @@ class ShopCore extends ObjectModel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user