[-] MO : fixed bug #PSCFV-4952

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17880 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-10-16 14:15:35 +00:00
parent 310625d1f2
commit 66c2c332f9
+2 -1
View File
@@ -278,7 +278,7 @@ class Followup extends Module
{
$emailLogs = $this->getLogsEmail(1);
$sql = '
SELECT c.id_cart, o.id_lang, cu.id_customer, cu.firstname, cu.lastname, cu.email
SELECT c.id_cart, c.id_lang, cu.id_customer, cu.firstname, cu.lastname, cu.email
FROM '._DB_PREFIX_.'cart c
LEFT JOIN '._DB_PREFIX_.'orders o ON (o.id_cart = c.id_cart)
LEFT JOIN '._DB_PREFIX_.'customer cu ON (cu.id_customer = c.id_customer)
@@ -482,6 +482,7 @@ class Followup extends Module
public function cronTask()
{
Context::getContext()->link = new Link(); //when this is call by cron context is not init
$conf = Configuration::getMultiple(array('PS_FOLLOW_UP_ENABLE_1', 'PS_FOLLOW_UP_ENABLE_2', 'PS_FOLLOW_UP_ENABLE_3', 'PS_FOLLOW_UP_ENABLE_4', 'PS_FOLLOW_UP_CLEAN_DB'));
if ($conf['PS_FOLLOW_UP_ENABLE_1'])