Seems to be a few bugs in the current version.
getting this error on any page trying to show cash
[phpBB Debug] PHP Notice: in file /includes/mods/cash/cash_class.php on line 461: Division by zero
this is the code it is referring to
Code: Select all
// divide by the new exchange rate
$amount /= $exchange_rates[$currency_to]['exchange_rate'];
I fixed it for now by putting an if statement before it allowing the function to only be carried out if $exchange_rates does not equal 0.
new code
Code: Select all
if ($exchange_rates[$currency_to]['exchange_rate']!='0') {
// divide by the new exchange rate
$amount /= $exchange_rates[$currency_to]['exchange_rate'];
}
There are also no numbers showing up on the memberlist for the currency that a user should have, and on the user profile it always shows 0. I checked my database and it is showing I should have 7 dollars but it is showing 0 on the forums. However if I go to the Bank within the user control panel it shows that I have 7 dollars.