Fix error : exception 'ErrorException' with message 'Undefined variable: cookie' in /Library/WebServer/Documents/bebeboutik/override/classes/PaymentModule.php:409

This commit is contained in:
Christophe LATOUR 2017-10-18 11:56:07 +02:00
parent 1dc2a7f6b2
commit 7b276ae733

View File

@ -2,7 +2,7 @@
class PaymentModule extends PaymentModuleCore { class PaymentModule extends PaymentModuleCore {
public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL, $extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false) public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL, $extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false)
{ {
global $cart; global $cart, $cookie;
$cart = new Cart((int)($id_cart)); $cart = new Cart((int)($id_cart));
// Does order already exists ? // Does order already exists ?