From 082ea313d9ecc5030b5727db600dd54c80ec73c1 Mon Sep 17 00:00:00 2001 From: kkhelifa Date: Mon, 20 Mar 2023 10:58:16 +0100 Subject: [PATCH] Corrections --- .../data/woocommerce/eCommerceRemoteAccessWoocommerce.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/data/woocommerce/eCommerceRemoteAccessWoocommerce.class.php b/class/data/woocommerce/eCommerceRemoteAccessWoocommerce.class.php index 1c9f886..0230035 100755 --- a/class/data/woocommerce/eCommerceRemoteAccessWoocommerce.class.php +++ b/class/data/woocommerce/eCommerceRemoteAccessWoocommerce.class.php @@ -2940,7 +2940,7 @@ public function updateRemoteStockProduct($remote_id, $product) $stock_by_location = array(); foreach ($remote_warehouses as $remote_code => $info) { - if (!$info['warehouse_id'] > 0) continue; + if (!($info['warehouse_id'] > 0)) continue; $stock = isset($product->stock_warehouse[$info['warehouse_id']]->real) ? $product->stock_warehouse[$info['warehouse_id']]->real : 0; $total_stock += $stock; $stock_by_location[$info['remote_id']] = [