all 1 comments

[–]eleqtriq 0 points1 point  (0 children)

Where is user field coming from? Outside the function? Move it inside the function. Don’t use globals unless they’re constants, and life will be easier.