From 3bb338ca93fec138ebc9c2b375a3bef36bac74c7 Mon Sep 17 00:00:00 2001 From: emc3 Date: Thu, 14 Aug 2003 15:13:20 +0000 Subject: [PATCH] Added optional floatval function for PHP < 4.2.0 git-svn-id: http://svn.automattic.com/wordpress/trunk@310 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2functions.php | 5 +++++ 1 file changed, 5 insertions(+) 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... */