[-] FO: Fix Order::getOrdersTotalPaid() reference is now a string #PSCFV-9342

This commit is contained in:
Rémi Gaillard
2013-06-03 11:49:55 +02:00
parent 53426b6430
commit 6d84d5833d
+1 -1
View File
@@ -1627,7 +1627,7 @@ class OrderCore extends ObjectModel
return Db::getInstance()->getValue(' return Db::getInstance()->getValue('
SELECT SUM(total_paid_tax_incl) SELECT SUM(total_paid_tax_incl)
FROM `'._DB_PREFIX_.'orders` FROM `'._DB_PREFIX_.'orders`
WHERE `reference` = '.(int)$this->reference.' WHERE `reference` = \''.pSQL($this->reference).'\'
AND `id_cart` = '.(int)$this->id_cart AND `id_cart` = '.(int)$this->id_cart
); );
} }