Solved Weird issue when modifying user credits

Blackhat

Licensed
Licensed
User Upgrade Duration
User Upgrade Pro
Credit System
Advanced User Profile
Joined
Dec 7, 2019
Messages
163
Reaction score
25
When modifying a user credits and xf_xs_cs_event_credit table is empty (after a clean install), a new item gets inserted like in screenshot. If modified user credits again, no item will be inserted!

UbOoSvS.png
 
So why a new item gets inserted in xf_xs_cs_event_credit table while it should be inserted in xf_xs_cs_modified_credit table only?
 
It's embedded, in: xf_xs_cs_modified_credit But it also creates a row for the user in the table: xf_xs_cs_event_credit
 
But it happens only if xf_xs_cs_event_credit table is empty, otherwise, it won't insert a new item in that table.
 
This is quite normal, I insert a line only if the user doesn't have a line corresponding to him in the table : xf_xs_cs_event_credit
 
Okay, thank you for clarifying. :)
 
Top Bottom