
| Title | Pointstore gambling, mySQL 5 strict mode |
|---|---|
| Description | On servers with strict mode enabled (not recommended for production websites), successful gambling will result in an error message. |
| Affects | Users with mySQL strict-mode enabled |
| Fix | In sources/hooks/modules/pointstore/gambling.php, change line 117 from:Code
$winnings=$average_gamble_multiplier*$amount+$x*1.1; // 1.1 is a magic number to make it seem a bit fairer
Code
$winnings=round($average_gamble_multiplier*$amount+$x*1.1); // 1.1 is a magic number to make it seem a bit fairer
|
There have been no trackbacks yet