Skip to content
This repository has been archived by the owner on Sep 25, 2021. It is now read-only.

Commit

Permalink
Fixed number_format() error
Browse files Browse the repository at this point in the history
Fixed the number_format() expects parameter 1 to be double, string given on
  • Loading branch information
renlok committed Jun 8, 2015
1 parent 5045c5f commit 164d409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions_global.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function print_money_nosymbol($str, $from_database = true)
$str = $this->input_money($str, $from_database);
}

return number_format($str, $this->SETTINGS['moneydecimals'], $a, $b);
return number_format(floatval($str), $this->SETTINGS['moneydecimals'], $a, $b);
}
}

Expand Down

0 comments on commit 164d409

Please sign in to comment.