soth2k wrote: soth2k wrote:I found a bug.
When I alter a specific game, the bet changes for other users too! Same prediction just like mine.
Any chance this happens because I'm a site admin?
edit: same thing happens when a simple user changes his predictions. he alters mine too as well as any other user's.
edit2: i found out that it's bugging when you are changing your prediction for a game that it's going to take place sooner than 2 days later... WHY THIS?
No one interested in this?
Sure, I am. Looks like nobody at my page did update their tipps right now, seems that they are just adding their tipps and never touch them. However I had a look into the code and found the error.
Code: Select all
WHERE fixture_id = " . $key . " AND user_id = " . $user->data['user_id'];
The where clause for the user_id was missing, so all fixtures were updated when one changed his prediction. However at the insert (if someone adds predictions) it is working, the user_id is in the query. Thanks for this finding.