[-] MO : Fix potential bug on carts for module Ogone

This commit is contained in:
rMalie
2011-08-22 07:53:16 +00:00
parent dc0acaf026
commit 4f7a7a57d2
+1 -1
View File
@@ -211,7 +211,7 @@ class Ogone extends PaymentModule
if ($amount > 0 AND class_exists('PaymentCC'))
{
$pcc = new PaymentCC();
$order = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'orders WHERE id_cart = '.(int)$secure_cart[0]);
$order = Db::getInstance()->getRow('SELECT * FROM '._DB_PREFIX_.'orders WHERE id_cart = '.(int)$id_cart);
$pcc->id_order = (int)$order['id_order'];
$pcc->id_currency = (int)$order['id_currency'];
$pcc->amount = $amount;