// 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:
rGaillard
2012-03-12 14:50:56 +00:00
parent b542939c9f
commit 951d49d00d
4 changed files with 19 additions and 11 deletions
+3 -1
View File
@@ -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