Skip to content

Commit

Permalink
fix fatal error on membership renewal
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitendra Purohit committed May 3, 2021
1 parent 5e738d5 commit e295a05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Utils/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ protected static function formatLocaleNumeric($amount) {
* @return string
*/
protected static function formatUSLocaleNumericRounded($amount, int $numberOfPlaces): string {
if (CRM_Utils_System::isNull($amount)) {
return '';
}
if (!extension_loaded('intl') || !is_numeric($amount)) {
// @todo - we should not attempt to format non-numeric strings. For now
// these will not fail but will give notices on php 7.4
Expand Down

0 comments on commit e295a05

Please sign in to comment.