// fix bug statsforecast and added toolbar in AdminDbController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10411 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-11-22 13:23:23 +00:00
parent 9fef06a9bb
commit f632af5e7a
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);