// temporary fix

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9514 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti committed 2011-10-20 15:21:04 +00:00
1 parent d1719fc0e2
commit 0598f561b7
1 file changed
+3 -1
+3 -1
View File
@@ -99,7 +99,9 @@ class StatsForecast extends Module
if ($this->context->cookie->stats_granularity == 42) if ($this->context->cookie->stats_granularity == 42)
$intervalAvg = $interval2 / 7; $intervalAvg = $interval2 / 7;
define('PS_BASE_URI', '/'); // @todo : to remove
if (!defined('PS_BASE_URI'))
define('PS_BASE_URI', '/');
$result = $db->getRow('SELECT UNIX_TIMESTAMP(\'2009-06-05\') as t1, UNIX_TIMESTAMP(\''.$employee->stats_date_from.'\') as t2'); $result = $db->getRow('SELECT UNIX_TIMESTAMP(\'2009-06-05\') as t1, UNIX_TIMESTAMP(\''.$employee->stats_date_from.'\') as t2');
$from = max($result['t1'], $result['t2']); $from = max($result['t1'], $result['t2']);
$to = strtotime($employee->stats_date_to.''); $to = strtotime($employee->stats_date_to.'');