"using an implicit default of '.' as decimal separator, if no explicit default is set"

This commit is contained in:
Ralf Becker 2009-11-13 09:49:13 +00:00
parent 509c20a625
commit 3d5bd129ca

View File

@ -412,9 +412,9 @@ class date_widget
($unit == 'm' ? (int) $value : round($value / 60 / ($unit == 'd' ? $hours_per_day : 1),3));
// use decimal separator from user prefs
if ($GLOBALS['egw_info']['user']['preferences']['common']['number_format'][0] != '.')
if (($sep = $GLOBALS['egw_info']['user']['preferences']['common']['number_format'][0]) && $sep != '.')
{
$value = str_replace('.',$GLOBALS['egw_info']['user']['preferences']['common']['number_format'][0],$value);
$value = str_replace('.',$sep,$value);
}
if (!$readonly && strlen($input_format) > 1) // selectbox to switch between hours and days
{