[-] MO : statsnewsletter - SQL error
This commit is contained in:
1 parent
d51719366f
commit
767d6856cb
1 file changed
+2
-1
@@ -87,7 +87,8 @@ class StatsNewsletter extends ModuleGraph
|
||||
|
||||
$sql = 'SELECT COUNT(*) as visitors
|
||||
FROM '._DB_PREFIX_.'newsletter
|
||||
WHERE '.$this->sqlShopRestriction().'
|
||||
WHERE 1
|
||||
'.$this->sqlShopRestriction().'
|
||||
AND `newsletter_date_add` BETWEEN '.ModuleGraph::getDateBetween();
|
||||
$result2 = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql);
|
||||
return array('customers' => $result1['customers'], 'visitors' => $result2['visitors'], 'both' => $result1['customers'] + $result2['visitors']);
|
||||
|
||||
Reference in new issue
Block a user