diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index f73c6ad362..57829e8da0 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -6,6 +6,11 @@ if (!function_exists('_')) { } } +if (!function_exists('floatval')) { + function floatval($string) { + return ((float) $string); + } +} /* functions... */