From abac851ff5acad789ba543c5b3808a88231e3c07 Mon Sep 17 00:00:00 2001 From: akulikov Date: Fri, 6 Feb 2009 09:04:03 +0000 Subject: [PATCH] mone2int fix git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@61 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Format.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/Format.class.php b/classes/Format.class.php index da32666..ac66746 100644 --- a/classes/Format.class.php +++ b/classes/Format.class.php @@ -46,6 +46,7 @@ class Format static public function money2int($money) { + $money = str_replace(' ', '', $money); if(!isset(self::$cache_money[$money])){ if(!strstr($money, self::$decimal_point) && !strstr($money, '.')){ self::$cache_money[$money] = (int)$money * 100;