// fix bug statsforecast and added toolbar in AdminDbController

This commit is contained in:
lLefevre
2011-11-22 13:23:23 +00:00
parent 2e492b0e25
commit 3903e532cb
3 changed files with 148 additions and 54 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class StatsForecast extends Module
$intervalAvg = $interval2 / 7;
$dataTable = array();
if ($cookie->stats_granularity == 10)
if ($this->context->cookie->stats_granularity == 10)
for ($i = $from; $i <= $to2; $i = strtotime('+1 day', $i))
$dataTable[date('Y-m-d', $i)] = array('fix_date' => date('Y-m-d', $i), 'countOrders' => 0, 'countProducts' => 0, 'totalProducts' => 0);