// Improve performance
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14042 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+3
-1
@@ -3448,7 +3448,9 @@ class ProductCore extends ObjectModel
|
||||
{
|
||||
if (!$row['id_product'])
|
||||
return false;
|
||||
$context = Context::getContext();
|
||||
|
||||
if ($context == null)
|
||||
$context = Context::getContext();
|
||||
|
||||
// Product::getDefaultAttribute is only called if id_product_attribute is missing from the SQL query at the origin of it:
|
||||
// consider adding it in order to avoid unnecessary queries
|
||||
|
||||
Reference in New Issue
Block a user