瀏覽代碼

Functions: Update for PHP 8.1

fusionate 2 年之前
父節點
當前提交
1b86dbb6f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/functions.php

+ 1 - 1
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);
 		}
 	}