@@ -16,10 +16,10 @@ |
||
16 | 16 | public static function get_currency( $currency ) { |
17 | 17 | $currency = strtoupper( $currency ); |
18 | 18 | $currencies = self::get_currencies(); |
19 | - if ( isset( $currencies[ $currency ] ) ) { |
|
20 | - $currency = $currencies[ $currency ]; |
|
21 | - } elseif ( isset( $currencies[ strtolower( $currency ) ] ) ) { |
|
22 | - $currency = $currencies[ strtolower( $currency ) ]; |
|
19 | + if ( isset( $currencies[$currency] ) ) { |
|
20 | + $currency = $currencies[$currency]; |
|
21 | + } elseif ( isset( $currencies[strtolower( $currency )] ) ) { |
|
22 | + $currency = $currencies[strtolower( $currency )]; |
|
23 | 23 | } else { |
24 | 24 | $currency = $currencies['USD']; |
25 | 25 | } |