Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop

This commit is contained in:
Nolwenn 2017-05-10 11:16:00 +02:00
commit aedcf9a365

View File

@ -244,7 +244,7 @@ class FraudCore {
FROM `'._DB_PREFIX_.'order_reputation` rep
LEFT JOIN `'._DB_PREFIX_.'cart` c ON c.`id_cart` = rep.`id_cart`
WHERE c.`id_customer` = '.(int) $this->customer->id.'
AND rep.`score` > 100
AND rep.`score` > 100 AND rep.`pass`= 0
');
if ($already_suspect || $already_fraud) {
@ -261,7 +261,7 @@ class FraudCore {
WHERE cu.`firstname` = "'.pSQL($this->customer->firstname).'"
AND cu.`lastname` = "'.pSQL($this->customer->lastname).'"
AND c.`id_customer`!='.$this->customer->id.'
AND rep.`score` > 100
AND rep.`score` > 100 AND rep.`pass`= 0
');
$already_fraud_by_names = Db::getInstance()->getValue('