+
+ // ensure $currency is a valid currency code
+ // for backwards-compatibility, also accept one space instead of a currency
+ if ($currency != ' ' && !array_key_exists($currency, self::$_currencySymbols)) {
+ throw new CRM_Core_Exception("Invalid currency \"{$currency}\"");
+ }
+