Uncategorized points displayed using userpoints_list_my_userpoints() are confused with the points of the default category. As a result, the "Approved points Balance" or "Net points Balance" is wrong and completely different to the total shown in the userpoints block. (Assuming that you have more that one category)
Since the uncategorized tid = 0, the call to userpoints_get_current_points() modifies the tid to the default value.
if (!$tid) { // <--- HERE
$tid = userpoints_get_default_tid();
}
elseif ($tid == 'all') {
return (int)db_result(db_query('SELECT SUM(points) FROM {userpoints} WHERE uid = %d', $uid));
}
return (int)db_result(db_query('SELECT points FROM {userpoints} WHERE uid = %d AND tid = %d', $uid, $tid));
Comments
Comment #1
manuel.adanClosing this as outdated, 6.x version is no longer maintained.