// Improve performance

This commit is contained in:
rGaillard
2012-03-12 14:50:56 +00:00
parent 0a3ed0b9eb
commit 3d0ccb91eb
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