Functions: Update for PHP 8.1
This commit is contained in:
parent
d0481896ba
commit
18f9c7a26f
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
if (!function_exists('check_float')) {
|
if (!function_exists('check_float')) {
|
||||||
function check_float($string) {
|
function check_float($string) {
|
||||||
$string = str_replace(",",".",$string);
|
$string = str_replace(",",".",$string ?? '');
|
||||||
return trim($string);
|
return trim($string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue