// temporary fix
This commit is contained in:
1 parent
1fcaeb335b
commit
f5baaa2ca0
1 file changed
+2
@@ -99,6 +99,8 @@ class StatsForecast extends Module
|
|||||||
if ($this->context->cookie->stats_granularity == 42)
|
if ($this->context->cookie->stats_granularity == 42)
|
||||||
$intervalAvg = $interval2 / 7;
|
$intervalAvg = $interval2 / 7;
|
||||||
|
|
||||||
|
// @todo : to remove
|
||||||
|
if (!defined('PS_BASE_URI'))
|
||||||
define('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']);
|
||||||
|
|||||||
Reference in new issue
Block a user