فهرست منبع

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')) {
 	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);
 		}
 		}
 	}
 	}