if (SQL_NUMROWS($result_user) == 1) {
// Account found!
$DATA = SQL_FETCHARRAY($result_user);
// Get count/sum of refs, selected categories, unconfirmed mails
$REFS = GET_TOTAL_DATA($uid, "refsystem", "counter");
if (SQL_NUMROWS($result_user) == 1) {
// Account found!
$DATA = SQL_FETCHARRAY($result_user);
// Get count/sum of refs, selected categories, unconfirmed mails
$REFS = GET_TOTAL_DATA($uid, "refsystem", "counter");
- $CATS = GET_TOTAL_DATA($uid, "user_cats", "id", 'userid', true);
- $LINKS = GET_TOTAL_DATA($uid, "user_links", "id", 'userid', true);
+ $CATS = GET_TOTAL_DATA($uid, "user_cats", 'id', 'userid', true);
+ $LINKS = GET_TOTAL_DATA($uid, "user_links", 'id', 'userid', true);
// Add links to the numbers
if ($LINKS > 0) $LINKS = $base."&what=list_links&uid=".$uid."\">".$LINKS."</a>]";
// Add links to the numbers
if ($LINKS > 0) $LINKS = $base."&what=list_links&uid=".$uid."\">".$LINKS."</a>]";
if ($content['refid'] > 0) $content['refid'] = generateUserProfileLink($content['refid']);
// Get number of unconfirmed mails
if ($content['refid'] > 0) $content['refid'] = generateUserProfileLink($content['refid']);
// Get number of unconfirmed mails
- $LINKS = GET_TOTAL_DATA($content['userid'], "user_links", "id", 'userid', true);
+ $LINKS = GET_TOTAL_DATA($content['userid'], "user_links", 'id', 'userid', true);
if ($LINKS > 0) $LINKS = $base."&what=list_links&uid=".$content['userid']."\">".translateComma($LINKS)."</a>]";
// Set link to sent mails if present
if ($LINKS > 0) $LINKS = $base."&what=list_links&uid=".$content['userid']."\">".translateComma($LINKS)."</a>]";
// Set link to sent mails if present