// Is the data there?
if (fetchUserData($content['refid'])) {
// Check for referals
- $refs_cnt = countSumTotalData(getUserData('userid'), 'refsystem', 'counter');
+ $refs_cnt = countSumTotalData(getUserData('userid'), 'user_refs', 'id', 'userid', true);
// Prepare data for the template
$content = array(