diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 137c9e3d33297..7f756c5566c08 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -2380,7 +2380,7 @@ public function updatePrice($newprice, $newpricebase, $user, $newvat = null, $ne return -1; } - if ($newprice !== '' || $newprice === 0) { + if ($newprice === 0 || $newprice !== '') { if ($newpricebase == 'TTC') { $price_ttc = price2num($newprice, 'MU'); $price = (float) price2num($newprice) / (1 + ((float) $newvat / 100)); diff --git a/htdocs/stripe/class/actions_stripe.class.php b/htdocs/stripe/class/actions_stripe.class.php index 51522e73b29d5..737eed4902335 100644 --- a/htdocs/stripe/class/actions_stripe.class.php +++ b/htdocs/stripe/class/actions_stripe.class.php @@ -1,8 +1,9 @@ - * Copyright (C) 2011 Herve Prot - * Copyright (C) 2014 Philippe Grand - * Copyright (C) 2024 MDW +/* Copyright (C) 2009-2016 Regis Houssin + * Copyright (C) 2011 Herve Prot + * Copyright (C) 2014 Philippe Grand + * Copyright (C) 2024 MDW + * Copyright (C) 2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,7 +42,7 @@ class ActionsStripeconnect extends CommonHookActions */ public $db; - private $config = array(); + private $config = array(); // @phpstan-ignore-line /**