// Revert normalization

This commit is contained in:
rMalie
2011-08-11 10:20:59 +00:00
parent accec09c98
commit 2bb147128b
48 changed files with 77 additions and 77 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class StatsCarrier extends ModuleGraph
protected function getData($layers)
{
$stateQuery = '';
if ($this->_option)
if ((int)($this->_option))
$stateQuery = 'AND (SELECT oh.id_order_state FROM `'._DB_PREFIX_.'order_history` oh WHERE o.id_order = oh.id_order ORDER BY oh.date_add DESC, oh.id_order_history DESC LIMIT 1) = '.(int)($this->_option);
$this->_titles['main'] = $this->l('Percentage of orders by carrier');