// Context part 29

This commit is contained in:
tDidierjean committed 2011-08-08 13:17:12 +00:00
1 parent 2b71b8be68
commit 0310674fe0
40 files changed
+195 -360

No files matched your search

@@ -120,8 +120,6 @@ class StatsPersonalInfos extends ModuleGraph
protected function getData($layers)
{
global $cookie;
switch ($this->_option)
{
case 'gender':
@@ -244,7 +242,7 @@ class StatsPersonalInfos extends ModuleGraph
FROM `'._DB_PREFIX_.'address` a
LEFT JOIN `'._DB_PREFIX_.'customer` cu ON cu.id_customer = a.id_customer
LEFT JOIN `'._DB_PREFIX_.'country` c ON a.`id_country` = c.`id_country`
LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (c.`id_country` = cl.`id_country` AND cl.`id_lang` = '.(int)$cookie->id_lang.')
LEFT JOIN `'._DB_PREFIX_.'country_lang` cl ON (c.`id_country` = cl.`id_country` AND cl.`id_lang` = '.(int)$this->context->language->id.')
WHERE a.id_customer != 0
'.$this->sqlShopRestriction(true, 'cu').'
GROUP BY c.`id_country`';