From 0598f561b7be115f4e15a38a93b4b2488f04e2b9 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Thu, 20 Oct 2011 15:21:04 +0000 Subject: [PATCH] // temporary fix git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9514 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/statsforecast/statsforecast.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/statsforecast/statsforecast.php b/modules/statsforecast/statsforecast.php index 8dc653729..f0ae33a0a 100644 --- a/modules/statsforecast/statsforecast.php +++ b/modules/statsforecast/statsforecast.php @@ -98,8 +98,10 @@ class StatsForecast extends Module $intervalAvg = $interval2; if ($this->context->cookie->stats_granularity == 42) $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'); $from = max($result['t1'], $result['t2']); $to = strtotime($employee->stats_date_to.''); @@ -604,4 +606,4 @@ function statsforecast_sort($a, $b) if ($a['orderSum'] == $b['orderSum']) return 0; return ($a['orderSum'] > $b['orderSum']) ? -1 : 1; -} \ No newline at end of file +}