// Performance optimizations

This commit is contained in:
rGaillard
2012-06-14 14:11:11 +00:00
parent 0ec0b6343b
commit 0a1e9d2124
14 changed files with 98 additions and 93 deletions
@@ -96,6 +96,9 @@ class FavoriteProduct extends ObjectModel
public static function isCustomerFavoriteProduct($id_customer, $id_product, Shop $shop = null)
{
if (!$id_customer)
return false;
if (!$shop)
$shop = Context::getContext()->shop;