From 18f9c7a26fa1327684d56fa6be45cde48a4682b6 Mon Sep 17 00:00:00 2001 From: fusionate Date: Mon, 22 May 2023 23:06:07 +0000 Subject: [PATCH] Functions: Update for PHP 8.1 --- resources/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functions.php b/resources/functions.php index 0030725532..ba8c73a3f7 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -33,7 +33,7 @@ if (!function_exists('check_float')) { function check_float($string) { - $string = str_replace(",",".",$string); + $string = str_replace(",",".",$string ?? ''); return trim($string); } }