// Performance optimizations
This commit is contained in:
1 parent
2609f8ff7e
commit
066ce42382
14 files changed
+98
-93
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user