// Fix bug with || instead of a &&

This commit is contained in:
mDeflotte
2012-05-30 07:14:21 +00:00
parent 1d7aa551f5
commit ca1c161075
+1 -1
View File
@@ -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;