Commit 922dbcc5 authored by Sylvain's avatar Sylvain

Convert - bug string_to_float

parent 85e88bd8
......@@ -194,7 +194,9 @@ if ( !function_exists('string_to_float')) {
function string_to_float($value)
{
if (!is_null($value)) {
return floatval(str_replace(',', '.', $value));
$string = str_replace(' ', '', $value);
$string = str_replace(',', '.', $string);
return floatval($string);
} else {
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment