From ebf06fde2f6923c19530932fe6d2804cf014fef4 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Wed, 30 May 2012 07:14:21 +0000 Subject: [PATCH] // Fix bug with || instead of a && --- classes/PaymentModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 10a0d5371..699f73b45 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -219,7 +219,7 @@ abstract class PaymentModuleCore extends Module $order->id_cart = (int)$cart->id; $order->reference = $reference; - if (($shop != null) || (Shop::getContext() == Shop::CONTEXT_SHOP)) + if (($shop != null) && (Shop::getContext() == Shop::CONTEXT_SHOP)) { $order->id_shop = (int)$shop->id; $order->id_shop_group = (int)$shop->id_shop_group;