| @@ -197,9 +197,9 @@ | ||
| 197 | 197 | ? $currency |
| 198 | 198 | : learn_press_get_currency_symbol() |
| 199 | 199 | ); |
| 200 | 200 | $thousands_separator = esc_html( LP_Settings::get_option( 'thousands_separator', ',' ) ); |
| 201 | - $number_of_decimals = esc_html( LP_Settings::get_option( 'number_of_decimals', 2 ) ); | |
| 201 | + $number_of_decimals = absint( LP_Settings::get_option( 'number_of_decimals', 2 ) ); | |
| 202 | 202 | $decimals_separator = esc_html( LP_Settings::get_option( 'decimals_separator', '.' ) ); |
| 203 | 203 | |
| 204 | 204 | switch ( LP_Settings::get_option( 'currency_pos' ) ) { |
| 205 | 205 | default: |