Merge branch 'ticket-13010-FraudUpdate' into develop

This commit is contained in:
Marion Muszynski 2017-05-10 10:46:31 +02:00
commit de528d660b

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('