- $content['total_points'] = countSumTotalData($userid, 'user_points', 'points');
- $content['locked'] = countSumTotalData($userid, 'user_points', 'locked_points');
+ $content['total_points'] = getTotalPoints($content['userid']);
+ $content['locked_points'] = countSumTotalData($userid, 'user_points', 'locked_points') + countSumTotalData($userid, 'user_points', 'locked_order_points');
+ $content['own_points'] = countSumTotalData($userid, 'user_points', 'points') + countSumTotalData($userid, 'user_points', 'order_points');