07.08.2018, 08:38
Remove the red text. Function passes by reference to user_id and then you return the value of cache_get_value_name_int which will be either 0 or 1 and bug it.
The if statement is redundant because you pass user_id onto WHERE clause in query. Unless you want to avoid race check collisions but this is not the way to do it.
The if statement is redundant because you pass user_id onto WHERE clause in query. Unless you want to avoid race check collisions but this is not the way to do it.