HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Skip navigation

Pointstore gambling, mySQL 5 strict mode

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
to:

Code

         $winnings=round($average_gamble_multiplier*$amount+$x*1.1); // 1.1 is a magic number to make it seem a bit fairer


Trackbacks

There have been no trackbacks yet


There have been no comments yet


Make comment
Your name: (join or login)
Subject:
Your message: