From 138ab462378e9fa728b848519b19194676572a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 21 Sep 2022 20:09:52 +0200 Subject: [PATCH] fix doc --- htdocs/core/class/extrafields.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 2b42b89c51d..3e7a3cc291a 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1099,7 +1099,7 @@ class ExtraFields } elseif ($type == 'pricecy') { $currency = $conf->currency; if (!empty($value)) { - // $value in memory is a php numeric, we format it into user number format. + // $value in memory is a php string like '10.01:USD' $pricetmp = explode(':', $value); $currency = !empty($pricetmp[1]) ? $pricetmp[1] : $conf->currency; $value = price($pricetmp[0]); @@ -1644,7 +1644,7 @@ class ExtraFields } elseif ($type == 'pricecy') { $currency = $conf->currency; if (!empty($value)) { - // $value in memory is a php numeric, we format it into user number format. + // $value in memory is a php string like '0.01:EUR' $pricetmp = explode(':', $value); $currency = !empty($pricetmp[1]) ? $pricetmp[1] : $conf->currency; $value = $pricetmp[0];