mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Attempt to cast floats immediately in settings saver
This commit is contained in:
parent
49733b155c
commit
130803efd6
@ -193,6 +193,11 @@ trait CompanySettingsSaver
|
||||
settype($settings->{$key}, 'object');
|
||||
}
|
||||
|
||||
//try casting floats here
|
||||
if($value == 'float'){
|
||||
$settings->{$key} = floatval($settings->{$key});
|
||||
}
|
||||
|
||||
/* Handles unset settings or blank strings */
|
||||
if (! property_exists($settings, $key) || is_null($settings->{$key}) || ! isset($settings->{$key}) || $settings->{$key} == '') {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user