Browse Source

mone2int fix

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@61 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
akulikov 16 years ago
parent
commit
abac851ff5
  1. 1
      classes/Format.class.php

1
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;

Loading…
Cancel
Save