diff --git a/application/helpers/sanitize_helper.php b/application/helpers/sanitize_helper.php index d0b63abb2a3..53d06cd6acc 100644 --- a/application/helpers/sanitize_helper.php +++ b/application/helpers/sanitize_helper.php @@ -287,7 +287,7 @@ function sanitize_float($float, $min='', $max='') { $float = str_replace(',','.',$float); // GMP library allows for high precision and high value numbers - if (function_exists('gmp_init')) + if (function_exists('gmp_init') && defined('GMP_VERSION') && version_compare(GMP_VERSION,'4.3.2')==1) { $gNumber = gmp_init($float); if(($min != '' && gmp_cmp($gNumber,$min)<0) || ($max != '' && gmp_cmp($gNumber,$max)>0))