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']] = [