From ae6350fabfb48ee1f31fe7fa55c9e5ae09dbe02d Mon Sep 17 00:00:00 2001 From: rMalie Date: Mon, 22 Aug 2011 08:03:41 +0000 Subject: [PATCH] // Fix module statscheckup for multistore git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8132 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/statscheckup/statscheckup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/statscheckup/statscheckup.php b/modules/statscheckup/statscheckup.php index fc7951604..24ee2576c 100644 --- a/modules/statscheckup/statscheckup.php +++ b/modules/statscheckup/statscheckup.php @@ -194,7 +194,7 @@ class StatsCheckUp extends Module $totals['images'] += (int)$scores['images']; $totals['sales'] += (int)$scores['sales']; $totals['stock'] += (int)$scores['stock']; - $descriptions = $db->ExecuteS('SELECT iso_code, description FROM '._DB_PREFIX_.'product_lang pl LEFT JOIN '._DB_PREFIX_.'lang l ON pl.id_lang = l.id_lang'.$this->context->shop->sqlLang('pl').' WHERE id_product = '.(int)$row['id_product']); + $descriptions = $db->ExecuteS('SELECT l.iso_code, pl.description FROM '._DB_PREFIX_.'product_lang pl LEFT JOIN '._DB_PREFIX_.'lang l ON pl.id_lang = l.id_lang WHERE id_product = '.(int)$row['id_product'].$this->context->shop->sqlLang('pl')); foreach ($descriptions as $description) { $row['desclength_'.$description['iso_code']] = Tools::strlen(strip_tags($description['description']));