From 277da121d6d53a70142213949b028589cfd09876 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Sat, 19 Jul 2014 02:41:52 +0000 Subject: [PATCH] add check_float function --- resources/functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/functions.php b/resources/functions.php index e400c726a0..16e0f58919 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -30,6 +30,13 @@ } } + if (!function_exists('check_float')) { + function check_float($string) { + $string = str_replace(",",".",$string); + return trim($string); + } + } + if (!function_exists('check_str')) { function check_str($string) { global $db_type;